Skip to content

Commit

Permalink
Second Fix Session
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandrebothamy committed Feb 26, 2018
1 parent 707e2fa commit 4c36b70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<language>en_US</language>
<language>fr_FR</language>
</languages>
<version>1.2.3</version>
<version>1.2.4</version>
<authors>
<author>
<name>Michaël Espeche</name>
Expand Down
4 changes: 3 additions & 1 deletion Smarty/Plugins/WishList.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
}

Expand Down

0 comments on commit 4c36b70

Please sign in to comment.