Skip to content

Commit

Permalink
Fixed null parameter warning in Mage_Wishlist_Block_Abstract (#4068)
Browse files Browse the repository at this point in the history
Co-authored-by: Fabrizio Balliano <fabrizio.balliano@gmail.com>
  • Loading branch information
ADDISON74 and fballiano authored Jul 2, 2024
1 parent 68a5ec5 commit 93288c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Wishlist/Block/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public function getEscapedDescription($item)
*/
public function hasDescription($item)
{
return trim($item->getDescription()) != '';
return trim($item->getDescription() ?? '') != '';
}

/**
Expand Down

0 comments on commit 93288c0

Please sign in to comment.