mirror of
https://github.com/smarty-php/smarty.git
synced 2026-04-28 18:02:07 +02:00
-bugfix Only variables should be assigned by reference https://github.com/smarty-php/smarty/issues/227
This commit is contained in:
@@ -26,7 +26,7 @@ if (!function_exists('smarty_mb_str_replace')) {
|
||||
if (is_array($subject)) {
|
||||
// call mb_replace for each single string in $subject
|
||||
foreach ($subject as &$string) {
|
||||
$string = &smarty_mb_str_replace($search, $replace, $string, $c);
|
||||
$string = smarty_mb_str_replace($search, $replace, $string, $c);
|
||||
$count += $c;
|
||||
}
|
||||
} elseif (is_array($search)) {
|
||||
|
||||
Reference in New Issue
Block a user