Fix error 500

This commit is contained in:
Michael RICOIS 2017-09-27 14:49:18 +02:00
parent db99007cc5
commit 177c3a2397

View File

@ -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)) {