Skip to content

Commit

Permalink
Fixed strtr(): Passing null to parameter OpenMage#1 ($string) of type…
Browse files Browse the repository at this point in the history
… string is deprecated
  • Loading branch information
kiatng committed Nov 10, 2023
1 parent 783ff68 commit 339148b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Catalog/Helper/Product/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,6 @@ public function getConvertTable()
*/
public function format($string)
{
return strtr($string, $this->getConvertTable());
return $string === null ? '' : strtr($string, $this->getConvertTable());
}
}

0 comments on commit 339148b

Please sign in to comment.