Skip to content

Commit

Permalink
Fixed strtr(): Passing null to parameter #1 ($string) of type string …
Browse files Browse the repository at this point in the history
…is deprecated (#3639)
  • Loading branch information
kiatng authored Nov 10, 2023
1 parent bb631be commit 0ac3f19
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 0ac3f19

Please sign in to comment.