mirror of
https://github.com/friendica/friendica
synced 2025-04-22 17:50:11 +00:00
template processor broken with foreach k=>v and k is integer 0
This commit is contained in:
parent
057a142b8c
commit
e0e008fb8d
2 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue