cvs: smarty /libs Smarty_Compiler.class.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1076187327@cvsserver> |
messju Sat Feb 7 15:55:27 2004 EDT
Modified files:
/smarty/libs Smarty_Compiler.class.php
Log:
removed two notices from Smarty_Compiler::_parse_is_expr()
(thanks shuther!)
http://cvs.php.net/diff.php/smarty/libs/Smarty_Compiler.class.php?r1=1.312&r2=1.313&ty=u
Index: smarty/libs/Smarty_Compiler.class.php
diff -u smarty/libs/Smarty_Compiler.class.php:1.312 smarty/libs/Smarty_Compiler.class.php:1.313
--- smarty/libs/Smarty_Compiler.class.php:1.312 Thu Jan 29 05:38:12 2004
+++ smarty/libs/Smarty_Compiler.class.php Sat Feb 7 15:55:27 2004
@@ -39,7 +39,7 @@
* @package Smarty
*/
-/* $Id: Smarty_Compiler.class.php,v 1.312 2004/01/29 10:38:12 messju Exp $ */
+/* $Id: Smarty_Compiler.class.php,v 1.313 2004/02/07 20:55:27 messju Exp $ */
/**
* Template compiling class
@@ -1433,7 +1433,7 @@
switch ($expr_type) {
case 'even':
- if (@$tokens[$expr_end] == 'by') {
+ if (isset($tokens[$expr_end]) && $tokens[$expr_end] == 'by') {
$expr_end++;
$expr_arg = $tokens[$expr_end++];
$expr = "!(1 & ($is_arg / " . $this->_parse_var_props($expr_arg) . "))";
@@ -1442,7 +1442,7 @@
break;
case 'odd':
- if (@$tokens[$expr_end] == 'by') {
+ if (isset($tokens[$expr_end]) && $tokens[$expr_end] == 'by') {
$expr_end++;
$expr_arg = $tokens[$expr_end++];
$expr = "(1 & ($is_arg / " . $this->_parse_var_props($expr_arg) . "))";
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php