Skip to content

Commit

Permalink
removing-cast
Browse files Browse the repository at this point in the history
  • Loading branch information
addison74 authored Feb 15, 2024
1 parent 0bb9a57 commit 2639b83
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((string)$row->getData($this->getColumn()->getIndex())));
$value = $row->getData($this->getColumn()->getIndex());
return is_string($value) ? nl2br(htmlspecialchars($value)) : '';
}
}

0 comments on commit 2639b83

Please sign in to comment.