From d6d7837233c73758b417a07176adbfe0213f11ae Mon Sep 17 00:00:00 2001 From: 7x Date: Mon, 25 Dec 2023 17:23:03 -0800 Subject: [PATCH] Update eztemplateforfunction.php bugfix for php 8 --- lib/eztemplate/classes/eztemplateforfunction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/eztemplate/classes/eztemplateforfunction.php b/lib/eztemplate/classes/eztemplateforfunction.php index ef2521816a..12bdff6ce7 100644 --- a/lib/eztemplate/classes/eztemplateforfunction.php +++ b/lib/eztemplate/classes/eztemplateforfunction.php @@ -103,7 +103,7 @@ function templateNodeTransformation( $functionName, &$node, $loop->initVars(); // loop header - $modifyLoopCounterCode = "\$for_firstval_$uniqid < \$for_lastval_$uniqid ? \$for_i_${uniqid}++ : \$for_i_${uniqid}--"; // . ";\n"; + $modifyLoopCounterCode = "\$for_firstval_$uniqid < \$for_lastval_$uniqid ? \$for_i_{$uniqid}++ : \$for_i_{$uniqid}--"; // . ";\n"; $newNodes[] = eZTemplateNodeTool::createCodePieceNode( "for ( \$for_i_$uniqid = \$for_firstval_$uniqid ; ; $modifyLoopCounterCode )\n{" ); $newNodes[] = eZTemplateNodeTool::createSpacingIncreaseNode(); // Check for index