You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$match[1] if is a zero evaluates to false, and isn't added to the $tree. if (strlen($tmp) || $match[1]) needs to be if (strlen($tmp) || isset($match[1]))
Thank you ;)
The text was updated successfully, but these errors were encountered:
Given
<check if='{{ @foo == @bar }}'><true>1</true><false>0</false></check>
the zero in the false tag is not printed.
The bug is on
\Template->parse()
line 280$match[1]
if is a zero evaluates to false, and isn't added to the$tree
.if (strlen($tmp) || $match[1])
needs to beif (strlen($tmp) || isset($match[1]))
Thank you ;)
The text was updated successfully, but these errors were encountered: