Skip to content

Commit

Permalink
isset (#586)
Browse files Browse the repository at this point in the history
- replaced empty by isset to pass 0
  • Loading branch information
loesler committed Apr 22, 2022
1 parent b3f1fa4 commit ef9c673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/smarty/plugins/shared.mb_str_replace.php
Expand Up @@ -46,7 +46,7 @@ function smarty_mb_str_replace($search, $replace, $subject, &$count = 0)
} else {
$parts = mb_split(preg_quote($search), $subject) ?: array();
$count = count($parts) - 1;
if (!empty($replace)) // ML because: PHP 8.1 PHP Deprecated: implode(): Passing null to parameter #1 ($string) of type string is deprecated
if (isset($replace)) // ML because: PHP 8.1 PHP Deprecated: implode(): Passing null to parameter #1 ($string) of type string is deprecated
$subject = implode($replace, $parts);
}
return $subject;
Expand Down

0 comments on commit ef9c673

Please sign in to comment.