diff --git a/contrib/mt_browscap/mt_browscap.module b/contrib/mt_browscap/mt_browscap.module
index 07f80a1..ce0c69b 100644
--- a/contrib/mt_browscap/mt_browscap.module
+++ b/contrib/mt_browscap/mt_browscap.module
@@ -8,7 +8,7 @@
 function mt_browscap_is_mobile_device() {
   $info = browscap_get_browser();
  // detect device type 
- if ($info['ismobiledevice']) {
+ if ($info['ismobiledevice'] && $info['ismobiledevice'] == 'true') {
     $type = 'mobile';
  } else {
     $type = 'desktop';
@@ -31,4 +31,4 @@ function mt_browscap_device_groups() {
 
 /** 
  *
- */  
\ No newline at end of file
+ */  
