summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stupid_template_engine.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/stupid_template_engine.php b/stupid_template_engine.php
index 860067b..e55023d 100644
--- a/stupid_template_engine.php
+++ b/stupid_template_engine.php
@@ -607,7 +607,7 @@ $ste_builtins = array(
if(empty($ast->params["step"]))
$step = 1;
else if((count($ast->params["step"]) == 1) and ($ast->params["step"][0] instanceof TextNode))
- $step = $ast->params["step"][0] + 0;
+ $step = $ast->params["step"][0]->text + 0;
else
$code .= "\$${loopname}_step = " . _transcompile($ast->params["step"], True) . ";\n";