From 2fc1fd958f6fb5619c31fe12622c1058ddb366ed Mon Sep 17 00:00:00 2001 From: messju Date: Sun, 29 Jan 2006 18:11:22 +0000 Subject: [PATCH] removed possiblity for E_NOTICE on an undefined variable in Smarty_Compiler::_compile_if_tag() - thanks to sbeh --- libs/Smarty_Compiler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index d084bd33..d0d5db08 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -1253,7 +1253,7 @@ class Smarty_Compiler extends Smarty { $tokens = $match[0]; if(empty($tokens)) { - $_error_msg .= $elseif ? "'elseif'" : "'if'"; + $_error_msg = $elseif ? "'elseif'" : "'if'"; $_error_msg .= ' statement requires arguments'; $this->_syntax_error($_error_msg, E_USER_ERROR, __FILE__, __LINE__); }