Skip to content

Commit

Permalink
Fixed null parameter warning in Mage/Adminhtml/Block/Customer/Edit/Ta…
Browse files Browse the repository at this point in the history
…b/Wishlist/Grid/Renderer/Description.php (#3829)

* Update Description.php

* removing-cast

* update-return

Co-authored-by: Ng Kiat Siong <[email protected]>

---------

Co-authored-by: Ng Kiat Siong <[email protected]>
  • Loading branch information
addison74 and kiatng authored Feb 21, 2024
1 parent 6f70616 commit d3ab364
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Mage_Adminhtml_Block_Customer_Edit_Tab_Wishlist_Grid_Renderer_Description
{
public function render(Varien_Object $row)
{
return nl2br(htmlspecialchars($row->getData($this->getColumn()->getIndex())));
$value = $row->getData($this->getColumn()->getIndex());
return $value !== null ? nl2br(htmlspecialchars($value)) : '';
}
}

0 comments on commit d3ab364

Please sign in to comment.