From 93288c0a0f8896eb00db025eca34edb37ad3f31e Mon Sep 17 00:00:00 2001 From: ADDISON <8360474+ADDISON74@users.noreply.github.com> Date: Tue, 2 Jul 2024 16:26:02 +0300 Subject: [PATCH] Fixed null parameter warning in Mage_Wishlist_Block_Abstract (#4068) Co-authored-by: Fabrizio Balliano --- app/code/core/Mage/Wishlist/Block/Abstract.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/core/Mage/Wishlist/Block/Abstract.php b/app/code/core/Mage/Wishlist/Block/Abstract.php index 38d2dd8d266..2eb34d78fb9 100644 --- a/app/code/core/Mage/Wishlist/Block/Abstract.php +++ b/app/code/core/Mage/Wishlist/Block/Abstract.php @@ -232,7 +232,7 @@ public function getEscapedDescription($item) */ public function hasDescription($item) { - return trim($item->getDescription()) != ''; + return trim($item->getDescription() ?? '') != ''; } /**