Skip to content

Commit

Permalink
Improvement to limit impact of bugfix on simple functions that accept…
Browse files Browse the repository at this point in the history
… references
  • Loading branch information
wisskid committed Feb 3, 2025
1 parent a0733b6 commit 2278591
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/sysplugins/smarty_internal_templatecompilerbase.php
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,8 @@ public function compilePHPFunctionCall($name, $parameter)
'a custom modifier.', E_USER_DEPRECATED);
}

if (isset($this->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER][$name])) {
if (isset($this->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER][$name][0])
&& !is_string($this->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER][$name][0])) {
return sprintf(
'call_user_func_array($_smarty_tpl->registered_plugins[ \'%s\' ][ %s ][ 0 ], array( %s ))',
Smarty::PLUGIN_MODIFIER,
Expand Down

0 comments on commit 2278591

Please sign in to comment.