template processor broken with foreach k=>v and k is integer 0

This commit is contained in:
friendica 2012-03-17 02:26:52 -07:00
parent 057a142b8c
commit e0e008fb8d
2 changed files with 3 additions and 3 deletions

View file

@ -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();
}