removed possiblity for E_NOTICE on an undefined variable in

Smarty_Compiler::_compile_if_tag() - thanks to sbeh
This commit is contained in:
messju
2006-01-29 18:11:22 +00:00
parent e2669949c0
commit 2fc1fd958f

View File

@@ -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__);
} }