mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
removed two notices from Smarty_Compiler::_parse_is_expr()
(thanks shuther!)
This commit is contained in:
@@ -1433,7 +1433,7 @@ class Smarty_Compiler extends Smarty {
|
|||||||
|
|
||||||
switch ($expr_type) {
|
switch ($expr_type) {
|
||||||
case 'even':
|
case 'even':
|
||||||
if (@$tokens[$expr_end] == 'by') {
|
if (isset($tokens[$expr_end]) && $tokens[$expr_end] == 'by') {
|
||||||
$expr_end++;
|
$expr_end++;
|
||||||
$expr_arg = $tokens[$expr_end++];
|
$expr_arg = $tokens[$expr_end++];
|
||||||
$expr = "!(1 & ($is_arg / " . $this->_parse_var_props($expr_arg) . "))";
|
$expr = "!(1 & ($is_arg / " . $this->_parse_var_props($expr_arg) . "))";
|
||||||
@@ -1442,7 +1442,7 @@ class Smarty_Compiler extends Smarty {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'odd':
|
case 'odd':
|
||||||
if (@$tokens[$expr_end] == 'by') {
|
if (isset($tokens[$expr_end]) && $tokens[$expr_end] == 'by') {
|
||||||
$expr_end++;
|
$expr_end++;
|
||||||
$expr_arg = $tokens[$expr_end++];
|
$expr_arg = $tokens[$expr_end++];
|
||||||
$expr = "(1 & ($is_arg / " . $this->_parse_var_props($expr_arg) . "))";
|
$expr = "(1 & ($is_arg / " . $this->_parse_var_props($expr_arg) . "))";
|
||||||
|
Reference in New Issue
Block a user