From f0a306d2cfcdb446e69d197611e3922a074ee8a4 Mon Sep 17 00:00:00 2001 From: lLefevre Date: Fri, 7 Sep 2012 14:39:14 +0000 Subject: [PATCH] // Small fix --- classes/Context.php | 1 + 1 file changed, 1 insertion(+) diff --git a/classes/Context.php b/classes/Context.php index d418492f6..642c2b79d 100644 --- a/classes/Context.php +++ b/classes/Context.php @@ -145,6 +145,7 @@ class ContextCore protected function checkMobileContext() { return isset($_SERVER['HTTP_USER_AGENT']) + && isset(Context::getContext()->cookie) && (bool)Configuration::get('PS_ALLOW_MOBILE_DEVICE') && @filemtime(_PS_THEME_MOBILE_DIR_) && !Context::getContext()->cookie->no_mobile;