Skip to content

Commit 1382aea

Browse files
authored
Fixed null parameter warning in Mage_Wishlist_Controller_Abstract::allcartAction() (#4083)
1 parent 594c640 commit 1382aea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/core/Mage/Wishlist/Controller/Abstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function allcartAction()
8585

8686
$qtysString = $this->getRequest()->getParam('qty');
8787
if (isset($qtysString)) {
88-
$qtys = array_filter(json_decode($qtysString), '\strlen');
88+
$qtys = array_filter(json_decode($qtysString), fn ($tmpString) => strlen($tmpString ?? ''));
8989
}
9090

9191
/** @var Mage_Wishlist_Model_Item $item */

0 commit comments

Comments
 (0)