aboutsummaryrefslogtreecommitdiffstats
path: root/include/template_processor.php
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2012-03-18 01:02:30 +0100
committerzottel <github@zottel.net>2012-03-18 01:02:30 +0100
commitdf78c9be0bab909dfa8cf196f7aaa4ea3423be8c (patch)
tree2dafebccd7de10089eef3dd1356a5760a280b590 /include/template_processor.php
parent3bbd82abb3b33f041ec35b85de5bddcd79ed5471 (diff)
parent26258bca77aa3385dacf36874f7f5603eaef9a6b (diff)
downloadvolse-hubzilla-df78c9be0bab909dfa8cf196f7aaa4ea3423be8c.tar.gz
volse-hubzilla-df78c9be0bab909dfa8cf196f7aaa4ea3423be8c.tar.bz2
volse-hubzilla-df78c9be0bab909dfa8cf196f7aaa4ea3423be8c.zip
Merge remote branch 'upstream/master'
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();
}