mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix isset(), unset() and empty() not working in template syntax
This commit is contained in:
parent
60b7912718
commit
0c31234e09
1 changed files with 1 additions and 1 deletions
|
|
@ -635,7 +635,7 @@ class TemplateHandler
|
|||
// {@ ... } or {$var} or {func(...)}
|
||||
if($m[1])
|
||||
{
|
||||
if(preg_match('@^(\w+)\(@', $m[1], $mm) && !function_exists($mm[1]))
|
||||
if(preg_match('@^(\w+)\(@', $m[1], $mm) && (!function_exists($mm[1]) && !in_array($mm[1], ['isset', 'unset', 'empty'])))
|
||||
{
|
||||
return $m[0];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue