mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
removed two occasional E_NOTICES from
Smarty_Compiler::_compile_include_php_tag()
This commit is contained in:
@@ -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') {
|
||||
|
Reference in New Issue
Block a user