cvs: smarty / Smarty_Compiler.class.php
| From: | Andrei Zmievski | Date: | Wed, 03 Apr 2002 23:04:37 +0000 |
| Subject: | cvs: smarty / Smarty_Compiler.class.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-11@lists.php.net to get a copy of this message | ||
andrei Wed Apr 3 18:04:37 2002 EDT
Modified files:
/smarty Smarty_Compiler.class.php
Log:
Fixed undefined offset warning in {if} tag.
Index: smarty/Smarty_Compiler.class.php
diff -u smarty/Smarty_Compiler.class.php:1.106 smarty/Smarty_Compiler.class.php:1.107
--- smarty/Smarty_Compiler.class.php:1.106 Wed Apr 3 11:31:59 2002
+++ smarty/Smarty_Compiler.class.php Wed Apr 3 18:04:36 2002
@@ -924,6 +924,7 @@
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'])) {