mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
removed possiblity for E_NOTICE on an undefined variable in
Smarty_Compiler::_compile_if_tag() - thanks to sbeh
This commit is contained in:
@@ -1253,7 +1253,7 @@ class Smarty_Compiler extends Smarty {
|
|||||||
$tokens = $match[0];
|
$tokens = $match[0];
|
||||||
|
|
||||||
if(empty($tokens)) {
|
if(empty($tokens)) {
|
||||||
$_error_msg .= $elseif ? "'elseif'" : "'if'";
|
$_error_msg = $elseif ? "'elseif'" : "'if'";
|
||||||
$_error_msg .= ' statement requires arguments';
|
$_error_msg .= ' statement requires arguments';
|
||||||
$this->_syntax_error($_error_msg, E_USER_ERROR, __FILE__, __LINE__);
|
$this->_syntax_error($_error_msg, E_USER_ERROR, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user