mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
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
This commit is contained in:
parent
8a668ffe67
commit
6d6c6179a8
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ class template_compile
|
||||||
for ($i = 0, $size = sizeof($text_blocks); $i < $size; $i++)
|
for ($i = 0, $size = sizeof($text_blocks); $i < $size; $i++)
|
||||||
{
|
{
|
||||||
$trim_check_text = trim($text_blocks[$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
|
// There will be a number of occasions where we switch into and out of
|
||||||
|
|
Loading…
Add table
Reference in a new issue