diff --git a/Config/module.xml b/Config/module.xml index 811484635..ac828cfb4 100644 --- a/Config/module.xml +++ b/Config/module.xml @@ -13,7 +13,7 @@ en_US fr_FR - 1.2.3 + 1.2.4 Michaƫl Espeche diff --git a/Smarty/Plugins/WishList.php b/Smarty/Plugins/WishList.php index 093014490..52dd949ce 100644 --- a/Smarty/Plugins/WishList.php +++ b/Smarty/Plugins/WishList.php @@ -39,7 +39,9 @@ public function __construct(Request $request) $this->request = $request; if (null !== $session = $this->request->getSession()) { - $this->userId = $session->getCustomerUser()->getId(); + if (null !== $session->getCustomerUser()) { + $this->userId = $session->getCustomerUser()->getId(); + } } }