Skip to content

Commit 7d5bae7

Browse files
author
Joan He
authored
Merge pull request #108 from magento-engcom/fix-calls-count
MAGETWO-89384 Fix Calls to count() - CE
2 parents 83c2aff + cd01eba commit 7d5bae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Wishlist/Observer/AddToCart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function execute(Observer $observer)
7676
$wishlistIds = [$singleWishlistId];
7777
}
7878

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

8282
if ($this->customerSession->isLoggedIn()) {

0 commit comments

Comments
 (0)