removed two occasional E_NOTICES from

Smarty_Compiler::_compile_include_php_tag()
This commit is contained in:
messju
2003-10-23 12:42:52 +00:00
parent 7f6ff2f41f
commit 029ed43de4

View File

@@ -927,8 +927,8 @@ class Smarty_Compiler extends Smarty {
$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') {