Skip to content

Commit 0ac3f19

Browse files
authored
Fixed strtr(): Passing null to parameter #1 ($string) of type string is deprecated (OpenMage#3639)
1 parent bb631be commit 0ac3f19

File tree

1 file changed

+1
-1
lines changed
  • app/code/core/Mage/Catalog/Helper/Product

1 file changed

+1
-1
lines changed

app/code/core/Mage/Catalog/Helper/Product/Url.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ public function getConvertTable()
115115
*/
116116
public function format($string)
117117
{
118-
return strtr($string, $this->getConvertTable());
118+
return $string === null ? '' : strtr($string, $this->getConvertTable());
119119
}
120120
}

0 commit comments

Comments
 (0)