summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmburnz2013-03-13 19:43:05 (GMT)
committer jmburnz2013-03-13 19:43:05 (GMT)
commit45bd4bdb3073d7220400429d84c8e0cb5fd05f97 (patch)
treec36d2bfe2157171486dffed3ad237a8556313365
parentf1fdf2ac0f5333a8cf5afb013db23f344768a6ec (diff)
add workaround for browscap ismobiledevice unefined index issue--author=git <git@81265.no-reply.drupal.org>
-rwxr-xr-xat_core/inc/get.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/at_core/inc/get.inc b/at_core/inc/get.inc
index f9a5915..950f454 100755
--- a/at_core/inc/get.inc
+++ b/at_core/inc/get.inc
@@ -225,7 +225,7 @@ function at_get_browser() {
else if (function_exists('browscap_get_browser')) {
$browscap = browscap_get_browser();
if ($browscap) {
- if ($browscap['ismobiledevice'] == TRUE) {
+ if (filter_var($browscap['ismobiledevice'], FILTER_VALIDATE_BOOLEAN) == TRUE) {
$browser['is_mobile'] = TRUE;
}
}