1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[feature/template-engine] Corrected miscompilation of loop size constructs.

PHPBB3-9726
This commit is contained in:
Oleg Pudeyev
2011-04-25 13:03:55 -04:00
parent 8d5e468eb4
commit f97411b911
3 changed files with 47 additions and 1 deletions

View File

@@ -588,7 +588,7 @@ class phpbb_template_filter extends php_user_filter
// Add the block reference for the last child.
$varref .= "['" . $blocks[0] . "']";
}
$token = "isset($varref) && sizeof($varref)";
$token = "(isset($varref) ? sizeof($varref) : 0)";
}
break;