Fix for substitute value is ZERO=0
This commit is contained in:
parent
280620a753
commit
86a598f3ae
|
@ -710,7 +710,7 @@ if ((!function_exists('mb_str_replace')) &&
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach((array) $search as $key => $s) {
|
foreach((array) $search as $key => $s) {
|
||||||
if($s == '') {
|
if($s == '' && $s !== 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$r = !is_array($replace) ? $replace : (array_key_exists($key, $replace) ? $replace[$key] : '');
|
$r = !is_array($replace) ? $replace : (array_key_exists($key, $replace) ? $replace[$key] : '');
|
||||||
|
|
Loading…
Reference in New Issue