fixed assign attribute for multiple counters

This commit is contained in:
messju
2003-05-02 22:33:15 +00:00
parent 406a148673
commit f5c4fd4534
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@@ -1,3 +1,4 @@
- fixed assign attribute for multiple counters (messju)
- added simple math operators to variables (Monte)
- reverted patch for case-insensitive tag-names (messju)
- enabled array(&$obj. 'source', 'timestamp', 'secure', 'trusted')

View File

@@ -48,7 +48,7 @@ function smarty_function_counter($params, &$smarty)
if (!empty($assign)) {
if (!isset($print)) $printval[$name] = false;
$smarty->assign($assign, $count[$name]);
$smarty->assign_by_ref($assign, $count[$name]);
}
if ($printval[$name]) {