Skip to content

Commit 6edd425

Browse files
committedJan 3, 2024
Fix str_replace() deprecated null parameter on sfNumberFormat
1 parent d1dc877 commit 6edd425

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/i18n/sfNumberFormat.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function format($number, $pattern = 'd', $currency = 'USD', $charset = 'U
141141
$symbol = $currency;
142142
}
143143

144-
$result = str_replace('¤', $symbol, $result);
144+
$result = str_replace('¤', $symbol ?: '', $result);
145145

146146
return sfToolkit::I18N_toEncoding($result, $charset);
147147
}

0 commit comments

Comments
 (0)
Please sign in to comment.