mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
Fixed undefined offset warning in {if} tag.
This commit is contained in:
@@ -924,6 +924,7 @@ class Smarty_Compiler extends Smarty {
|
||||
|
||||
default:
|
||||
if($this->security &&
|
||||
$i+1 < count($tokens) &&
|
||||
$tokens[$i+1] == '(' &&
|
||||
preg_match('!^[a-zA-Z_]\w+$!', $tokens[$i]) &&
|
||||
!in_array($tokens[$i], $this->security_settings['IF_FUNCS'])) {
|
||||
|
@@ -924,6 +924,7 @@ class Smarty_Compiler extends Smarty {
|
||||
|
||||
default:
|
||||
if($this->security &&
|
||||
$i+1 < count($tokens) &&
|
||||
$tokens[$i+1] == '(' &&
|
||||
preg_match('!^[a-zA-Z_]\w+$!', $tokens[$i]) &&
|
||||
!in_array($tokens[$i], $this->security_settings['IF_FUNCS'])) {
|
||||
|
Reference in New Issue
Block a user