diff options
| author | Simon Wisselink <s.wisselink@iwink.nl> | 2022-09-10 12:34:20 +0200 |
|---|---|---|
| committer | Simon Wisselink <s.wisselink@iwink.nl> | 2022-09-10 12:34:20 +0200 |
| commit | f8f97b4e2d0eedcc5b24acbec2d456447b556398 (patch) | |
| tree | 88aae97ce37d9ab45bf6a5b645befcf614dfaa6f /libs | |
| parent | 1bc7c722a39598bdbbd273f5d9d6b61764bb193a (diff) | |
| download | smarty-f8f97b4e2d0eedcc5b24acbec2d456447b556398.tar.gz smarty-f8f97b4e2d0eedcc5b24acbec2d456447b556398.tar.bz2 smarty-f8f97b4e2d0eedcc5b24acbec2d456447b556398.zip | |
Fixed PHP8.1 deprecation errors in upper modifier #788
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/plugins/modifiercompiler.upper.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/plugins/modifiercompiler.upper.php b/libs/plugins/modifiercompiler.upper.php index e12ae676..31a90a05 100644 --- a/libs/plugins/modifiercompiler.upper.php +++ b/libs/plugins/modifiercompiler.upper.php @@ -21,8 +21,8 @@ function smarty_modifiercompiler_upper($params) { if (Smarty::$_MBSTRING) { - return 'mb_strtoupper(' . $params[ 0 ] . ', \'' . addslashes(Smarty::$_CHARSET) . '\')'; + return 'mb_strtoupper(' . $params[ 0 ] . ' ?? \'\', \'' . addslashes(Smarty::$_CHARSET) . '\')'; } // no MBString fallback - return 'strtoupper(' . $params[ 0 ] . ')'; + return 'strtoupper(' . $params[ 0 ] . ' ?? \'\')'; } |
