aboutsummaryrefslogtreecommitdiff
path: root/lib/exTpl/IteratorNode.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/exTpl/IteratorNode.php')
-rw-r--r--lib/exTpl/IteratorNode.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/exTpl/IteratorNode.php b/lib/exTpl/IteratorNode.php
index 58dd593..17c15d0 100644
--- a/lib/exTpl/IteratorNode.php
+++ b/lib/exTpl/IteratorNode.php
@@ -38,6 +38,9 @@ class IteratorNode extends ArrayNode
$result = '';
if (is_array($values) && is_int(key($values))) {
+ $key = null;
+ $value = null;
+
$bindings = [$this->key_name => &$key, $this->val_name => &$value];
$context = new Context($bindings, $context);