aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template_compile.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/template_compile.php')
-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;