diff options
Diffstat (limited to 'vendor/smarty/smarty/libs/plugins/shared.mb_str_replace.php')
-rw-r--r-- | vendor/smarty/smarty/libs/plugins/shared.mb_str_replace.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/smarty/smarty/libs/plugins/shared.mb_str_replace.php b/vendor/smarty/smarty/libs/plugins/shared.mb_str_replace.php index 206cf9ea6..226d9035d 100644 --- a/vendor/smarty/smarty/libs/plugins/shared.mb_str_replace.php +++ b/vendor/smarty/smarty/libs/plugins/shared.mb_str_replace.php @@ -44,7 +44,7 @@ if (!function_exists('smarty_mb_str_replace')) { } } } else { - $parts = mb_split(preg_quote($search), $subject); + $parts = mb_split(preg_quote($search), $subject) ?: array(); $count = count($parts) - 1; $subject = implode($replace, $parts); } |