mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
fix notice when no parameter is passed to default
This commit is contained in:
@@ -1640,7 +1640,7 @@ class Smarty_Compiler extends Smarty {
|
||||
if($output{0} == '$') {
|
||||
$output = '@' . $output;
|
||||
}
|
||||
if($_modifier_args[0]{0} == '$') {
|
||||
if(isset($_modifier_args[0]) && $_modifier_args[0]{0} == '$') {
|
||||
$_modifier_args[0] = '@' . $_modifier_args[0];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user