cvs: smarty /libs Smarty_Compiler.class.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1066912972@cvsserver> |
messju Thu Oct 23 08:42:52 2003 EDT
Modified files:
/smarty/libs Smarty_Compiler.class.php
Log:
removed two occasional E_NOTICES from
Smarty_Compiler::_compile_include_php_tag()
Index: smarty/libs/Smarty_Compiler.class.php
diff -u smarty/libs/Smarty_Compiler.class.php:1.289 smarty/libs/Smarty_Compiler.class.php:1.290
--- smarty/libs/Smarty_Compiler.class.php:1.289 Mon Oct 20 10:02:03 2003
+++ smarty/libs/Smarty_Compiler.class.php Thu Oct 23 08:42:52 2003
@@ -39,7 +39,7 @@
* @package Smarty
*/
-/* $Id: Smarty_Compiler.class.php,v 1.289 2003/10/20 14:02:03 messju Exp $ */
+/* $Id: Smarty_Compiler.class.php,v 1.290 2003/10/23 12:42:52 messju Exp $ */
/**
* Template compiling class
@@ -927,8 +927,8 @@
$this->_syntax_error("missing 'file' attribute in include_php tag", E_USER_ERROR, __FILE__, __LINE__);
}
- $assign_var = $this->_dequote($attrs['assign']);
- $once_var = ( $attrs['once'] == 'false' ) ? 'false' : 'true';
+ $assign_var = (empty($attrs['assign'])) ? '' : $this->_dequote($attrs['assign']);
+ $once_var = (empty($attrs['once']) || $attrs['once']=='false') ? 'false' : 'true';
foreach($attrs as $arg_name => $arg_value) {
if($arg_name != 'file' AND $arg_name != 'once' AND $arg_name != 'assign') {
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php