Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…7.2-support into libs-upgrade
  • Loading branch information
Joan He committed Apr 2, 2018
2 parents bf90dba + 7d5bae7 commit 3a1a7eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Wishlist/Observer/AddToCart.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function execute(Observer $observer)
$wishlistIds = [$singleWishlistId];
}

if (count($wishlistIds) && $request->getParam('wishlist_next')) {
if (is_array($wishlistIds) && count($wishlistIds) && $request->getParam('wishlist_next')) {
$wishlistId = array_shift($wishlistIds);

if ($this->customerSession->isLoggedIn()) {
Expand Down

0 comments on commit 3a1a7eb

Please sign in to comment.