Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit cd60927

Browse files
committed
Back port the changes from contao/core-bundle#1059.
1 parent 2474ff9 commit cd60927

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/modules/core/library/Contao/StringUtil.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -605,13 +605,13 @@ function (array $matches) use ($arrData)
605605
$blnCurrent = $arrStack[count($arrStack) - 1];
606606
$blnCurrentIf = $arrIfStack[count($arrIfStack) - 1];
607607

608-
if (strncmp($strTag, '{if', 3) === 0)
608+
if (strncmp($strTag, '{if ', 4) === 0)
609609
{
610610
$blnExpression = $evaluateExpression(substr($strTag, 4, -1));
611611
$arrStack[] = $blnCurrent && $blnExpression;
612612
$arrIfStack[] = $blnExpression;
613613
}
614-
elseif (strncmp($strTag, '{elseif', 7) === 0)
614+
elseif (strncmp($strTag, '{elseif ', 8) === 0)
615615
{
616616
$blnExpression = $evaluateExpression(substr($strTag, 8, -1));
617617
array_pop($arrStack);

0 commit comments

Comments
 (0)