From 177c3a2397b345e25e344d91829e0d7e39f92e3e Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Wed, 27 Sep 2017 14:49:18 +0200 Subject: [PATCH] Fix error 500 --- override/classes/controller/FrontController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/override/classes/controller/FrontController.php b/override/classes/controller/FrontController.php index 32c397ac..73513aa9 100644 --- a/override/classes/controller/FrontController.php +++ b/override/classes/controller/FrontController.php @@ -39,7 +39,7 @@ class FrontController extends FrontControllerCore public function init() { // Detection provenance campagne email depuis mobile et non connecté - if ($this->context->mobile_detect->isMobile() && !Customer::isLogged()){ + if ($this->context->getMobileDevice() && !Customer::isLogged()){ $popup = Tools::getValue('popup'); $source = Tools::getValue('source'); if ($popup == 1 && !empty($source)) {