diff options
author | friendica <info@friendica.com> | 2012-03-17 02:26:52 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-03-17 02:26:52 -0700 |
commit | e0e008fb8d894c7fe56fbb88fa96224c0796ea75 (patch) | |
tree | 79379bbf719c3a24e66ee57b04a52071fea115bd /include/template_processor.php | |
parent | 057a142b8cd01cd8ab6212e9d958989c82dfccc3 (diff) | |
download | volse-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-x | include/template_processor.php | 2 |
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(); } |