fix notice when no parameter is passed to default

This commit is contained in:
mohrt
2003-03-20 14:31:18 +00:00
parent 267a9c41d7
commit ec60516e34

View File

@@ -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];
}
}