Fix for substitute value is ZERO=0

This commit is contained in:
William Crandell 2014-09-01 03:09:52 -05:00
parent 280620a753
commit 86a598f3ae
1 changed files with 1 additions and 1 deletions

View File

@ -710,7 +710,7 @@ if ((!function_exists('mb_str_replace')) &&
}
foreach((array) $search as $key => $s) {
if($s == '') {
if($s == '' && $s !== 0) {
continue;
}
$r = !is_array($replace) ? $replace : (array_key_exists($key, $replace) ? $replace[$key] : '');