aboutsummaryrefslogtreecommitdiffstats
path: root/include/template_processor.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-17 02:26:52 -0700
committerfriendica <info@friendica.com>2012-03-17 02:26:52 -0700
commite0e008fb8d894c7fe56fbb88fa96224c0796ea75 (patch)
tree79379bbf719c3a24e66ee57b04a52071fea115bd /include/template_processor.php
parent057a142b8cd01cd8ab6212e9d958989c82dfccc3 (diff)
downloadvolse-hubzilla-e0e008fb8d894c7fe56fbb88fa96224c0796ea75.tar.gz
volse-hubzilla-e0e008fb8d894c7fe56fbb88fa96224c0796ea75.tar.bz2
volse-hubzilla-e0e008fb8d894c7fe56fbb88fa96224c0796ea75.zip
template processor broken with foreach k=>v and k is integer 0
Diffstat (limited to 'include/template_processor.php')
-rwxr-xr-xinclude/template_processor.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/template_processor.php b/include/template_processor.php
index 7f7b0b55b..93bf391c5 100755
--- a/include/template_processor.php
+++ b/include/template_processor.php
@@ -96,7 +96,7 @@
$this->_push_stack();
$r = $this->r;
$r[$varname] = $v;
- if ($keyname!='') $r[$keyname] = $k;
+ if ($keyname!='') $r[$keyname] = (($k === 0) ? '0' : $k);
$ret .= $this->replace($args[3], $r);
$this->_pop_stack();
}