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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user