aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_template.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-04-20 09:09:20 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-04-20 09:09:20 +0000
commit6d6c6179a8c50703f4bcd035587e7b184c41087d (patch)
tree9e3d60b90825bc56b263e95a8c496ea96bbd98f1 /phpBB/includes/functions_template.php
parent8a668ffe676f945afe4c5278c035082d31891d3b (diff)
downloadforums-6d6c6179a8c50703f4bcd035587e7b184c41087d.tar
forums-6d6c6179a8c50703f4bcd035587e7b184c41087d.tar.gz
forums-6d6c6179a8c50703f4bcd035587e7b184c41087d.tar.bz2
forums-6d6c6179a8c50703f4bcd035587e7b184c41087d.tar.xz
forums-6d6c6179a8c50703f4bcd035587e7b184c41087d.zip
allow constructs like <!-- ELSE -->0<!-- ENDIF --> (the 0 was replaced by '' due to the empty() checks on $trim_text_check)
git-svn-id: file:///svn/phpbb/trunk@7377 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_template.php')
-rw-r--r--phpBB/includes/functions_template.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_template.php b/phpBB/includes/functions_template.php
index f37148658b..aacb4c6ddb 100644
--- a/phpBB/includes/functions_template.php
+++ b/phpBB/includes/functions_template.php
@@ -223,7 +223,7 @@ class template_compile
for ($i = 0, $size = sizeof($text_blocks); $i < $size; $i++)
{
$trim_check_text = trim($text_blocks[$i]);
- $template_php .= (!$no_echo) ? ((!empty($trim_check_text)) ? $text_blocks[$i] : '') . ((!empty($compile_blocks[$i])) ? $compile_blocks[$i] : '') : ((!empty($trim_check_text)) ? $text_blocks[$i] : '') . ((!empty($compile_blocks[$i])) ? $compile_blocks[$i] : '');
+ $template_php .= (!$no_echo) ? (($trim_check_text != '') ? $text_blocks[$i] : '') . ((isset($compile_blocks[$i])) ? $compile_blocks[$i] : '') : (($trim_check_text != '') ? $text_blocks[$i] : '') . ((isset($compile_blocks[$i])) ? $compile_blocks[$i] : '');
}
// There will be a number of occasions where we switch into and out of