Skip to content

Commit 93288c0

Browse files
addison74fballiano
andauthored
Fixed null parameter warning in Mage_Wishlist_Block_Abstract (#4068)
Co-authored-by: Fabrizio Balliano <[email protected]>
1 parent 68a5ec5 commit 93288c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public function getEscapedDescription($item)
232232
*/
233233
public function hasDescription($item)
234234
{
235-
return trim($item->getDescription()) != '';
235+
return trim($item->getDescription() ?? '') != '';
236236
}
237237

238238
/**

0 commit comments

Comments
 (0)