cvs: smarty /libs Smarty_Compiler.class.php

[email protected] ("Messju Mohr") Sun, 29 Jan 2006 18:11:22 -0000
Newsgroups php.smarty.cvs
Message-ID <cvsmessju1138558282@cvsserver>
messju		Sun Jan 29 18:11:22 2006 UTC

  Modified files:              
    /smarty/libs	Smarty_Compiler.class.php 
  Log:
  removed possiblity for E_NOTICE on an undefined variable in
  Smarty_Compiler::_compile_if_tag() - thanks to sbeh
  
  
  
http://cvs.php.net/viewcvs.cgi/smarty/libs/Smarty_Compiler.class.php?r1=1.377&r2=1.378&diff_format=u
Index: smarty/libs/Smarty_Compiler.class.php
diff -u smarty/libs/Smarty_Compiler.class.php:1.377 smarty/libs/Smarty_Compiler.class.php:1.378
--- smarty/libs/Smarty_Compiler.class.php:1.377	Wed Jan 18 19:02:52 2006
+++ smarty/libs/Smarty_Compiler.class.php	Sun Jan 29 18:11:22 2006
@@ -26,7 +26,7 @@
  * @package Smarty
  */
 
-/* $Id: Smarty_Compiler.class.php,v 1.377 2006/01/18 19:02:52 mohrt Exp $ */
+/* $Id: Smarty_Compiler.class.php,v 1.378 2006/01/29 18:11:22 messju Exp $ */
 
 /**
  * Template compiling class
@@ -1253,7 +1253,7 @@
         $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__);
         }