From e8ab747a604201310e6d1e17b261a5568a36a4a7 Mon Sep 17 00:00:00 2001 From: "uwe.tews@googlemail.com" Date: Wed, 22 Sep 2010 13:06:47 +0000 Subject: [PATCH] - bugfix on default modifier --- change_log.txt | 3 +++ libs/plugins/modifiercompiler.default.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/change_log.txt b/change_log.txt index 810628f0..170f475a 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,3 +1,6 @@ +22/09/2010 +- bugfix on default modifier + 18/09/2010 - bugfix untility compileAllConfig() did not create sha1 code for compiled template file names if template_dir was defined with no trailing DS - bugfix on templateExists() for extends resource diff --git a/libs/plugins/modifiercompiler.default.php b/libs/plugins/modifiercompiler.default.php index addd4aa0..7bfda8b0 100644 --- a/libs/plugins/modifiercompiler.default.php +++ b/libs/plugins/modifiercompiler.default.php @@ -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; }