mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41: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(...)}
|
// {@ ... } or {$var} or {func(...)}
|
||||||
if($m[1])
|
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];
|
return $m[0];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue