mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-18 23:15:21 +02:00
- bugfix on default modifier
This commit is contained in:
@@ -25,7 +25,7 @@ function smarty_modifiercompiler_default ($params, $compiler)
|
||||
$params[1] = "''";
|
||||
}
|
||||
for ($i = 1, $cnt = count($params); $i < $cnt; $i++) {
|
||||
$output = '(($tmp = ' . $output . ')===null||$tmp===\'\' ? ' . $params[$i] . ' : $tmp)';
|
||||
$output = '(($tmp = @' . $output . ')===null||$tmp===\'\' ? ' . $params[$i] . ' : $tmp)';
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
Reference in New Issue
Block a user