aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-04-25 13:03:55 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2011-04-25 23:19:25 -0400
commitf97411b91143a0c75ef0ecec3ff03fc36a879728 (patch)
tree65c2bcbe1947dfe78e34e3cc2ae280d837ab06f0 /phpBB/includes
parent8d5e468eb47f35287214ed4a12722d5add5f37ba (diff)
downloadforums-f97411b91143a0c75ef0ecec3ff03fc36a879728.tar
forums-f97411b91143a0c75ef0ecec3ff03fc36a879728.tar.gz
forums-f97411b91143a0c75ef0ecec3ff03fc36a879728.tar.bz2
forums-f97411b91143a0c75ef0ecec3ff03fc36a879728.tar.xz
forums-f97411b91143a0c75ef0ecec3ff03fc36a879728.zip
[feature/template-engine] Corrected miscompilation of loop size constructs.
PHPBB3-9726
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/template_compile.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/template_compile.php b/phpBB/includes/template_compile.php
index cba402f83b..9a8bc05343 100644
--- a/phpBB/includes/template_compile.php
+++ b/phpBB/includes/template_compile.php
@@ -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;