Skip to content

Commit

Permalink
Fix str_replace() deprecated null parameter on sfNumberFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
thePanz committed Jan 3, 2024
1 parent d1dc877 commit 6edd425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/i18n/sfNumberFormat.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function format($number, $pattern = 'd', $currency = 'USD', $charset = 'U
$symbol = $currency;
}

$result = str_replace('¤', $symbol, $result);
$result = str_replace('¤', $symbol ?: '', $result);

return sfToolkit::I18N_toEncoding($result, $charset);
}
Expand Down

0 comments on commit 6edd425

Please sign in to comment.