From c4479805afed91fb1fc59fd02a1f90fd229cfa15 Mon Sep 17 00:00:00 2001 From: messju Date: Sun, 27 Apr 2003 18:29:21 +0000 Subject: [PATCH] prevent assign from overruling print-attribute in function.counter.php --- libs/plugins/function.counter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/plugins/function.counter.php b/libs/plugins/function.counter.php index cf2d6691..5e395422 100644 --- a/libs/plugins/function.counter.php +++ b/libs/plugins/function.counter.php @@ -47,7 +47,7 @@ function smarty_function_counter($params, &$smarty) $printval[$name]=$print; if (!empty($assign)) { - $printval[$name] = false; + if (!isset($print)) $printval[$name] = false; $smarty->assign($assign, $count[$name]); }