cvs: smarty /libs/plugins function.counter.php
| From: | Messju Mohr | Date: | Sun, 27 Apr 2003 18:29:21 +0000 |
| Subject: | cvs: smarty /libs/plugins function.counter.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-567@lists.php.net to get a copy of this message | ||
messju Sun Apr 27 14:29:21 2003 EDT
Modified files:
/smarty/libs/plugins function.counter.php
Log:
prevent assign from overruling print-attribute in function.counter.php
Index: smarty/libs/plugins/function.counter.php
diff -u smarty/libs/plugins/function.counter.php:1.6 smarty/libs/plugins/function.counter.php:1.7
--- smarty/libs/plugins/function.counter.php:1.6 Sun Apr 27 14:16:24 2003
+++ smarty/libs/plugins/function.counter.php Sun Apr 27 14:29:21 2003
@@ -47,7 +47,7 @@
$printval[$name]=$print;
if (!empty($assign)) {
- $printval[$name] = false;
+ if (!isset($print)) $printval[$name] = false;
$smarty->assign($assign, $count[$name]);
}