=== modified file 'modules/mobile_theme/mobile_theme.module'
--- modules/mobile_theme/mobile_theme.module    2012-02-12 06:04:29 +0000
+++ modules/mobile_theme/mobile_theme.module    2012-02-22 14:58:08 +0000
@@ -106,7 +106,7 @@
   if (preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|android)/i', strtolower($_SERVER['HTTP_USER_AGENT']))) {
     $mobile_browser++;
   }
-  if ((strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml') > 0) or ((isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE'])))) {
+  if (isset($_SERVER['HTTP_ACCEPT']) && (strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml') > 0 || isset($_SERVER['HTTP_X_WAP_PROFILE']) || isset($_SERVER['HTTP_PROFILE']))) {
     $mobile_browser++;
   }
   $mobile_ua = strtolower(substr($_SERVER['HTTP_USER_AGENT'], 0, 4));

