Skip to content

Commit

Permalink
Update eztemplateforfunction.php bugfix for php 8
Browse files Browse the repository at this point in the history
  • Loading branch information
se7enxweb authored Dec 26, 2023
1 parent 3378ca6 commit d6d7837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/eztemplate/classes/eztemplateforfunction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d6d7837

Please sign in to comment.