aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/smarty/smarty/libs/plugins/function.counter.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/smarty/smarty/libs/plugins/function.counter.php')
-rw-r--r--vendor/smarty/smarty/libs/plugins/function.counter.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/smarty/smarty/libs/plugins/function.counter.php b/vendor/smarty/smarty/libs/plugins/function.counter.php
index bcc8f498c..9610362d9 100644
--- a/vendor/smarty/smarty/libs/plugins/function.counter.php
+++ b/vendor/smarty/smarty/libs/plugins/function.counter.php
@@ -8,8 +8,8 @@
/**
* Smarty {counter} function plugin
- * Type: function<br>
- * Name: counter<br>
+ * Type: function
+ * Name: counter
* Purpose: print out a counter value
*
* @author Monte Ohrt <monte at ohrt dot com>
@@ -63,7 +63,7 @@ function smarty_function_counter($params, $template)
$counter[ 'direction' ] = $params[ 'direction' ];
}
- if ($counter[ 'direction' ] == "down") {
+ if ($counter[ 'direction' ] === 'down') {
$counter[ 'count' ] -= $counter[ 'skip' ];
} else {
$counter[ 'count' ] += $counter[ 'skip' ];