From 36fbeb2b78fa3838201dc146f1396dca83ebc325 Mon Sep 17 00:00:00 2001 From: Roly Rudy Gutierrez Pinto Date: Tue, 6 May 2014 16:23:08 -0400 Subject: [PATCH] SOLVED: the variable $i is used in several places in an ambiguous way, a change of variable used in cycle $i for $j is made. --- workflow/engine/classes/class.configuration.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/workflow/engine/classes/class.configuration.php b/workflow/engine/classes/class.configuration.php index 0030f940c..d1c1aa941 100755 --- a/workflow/engine/classes/class.configuration.php +++ b/workflow/engine/classes/class.configuration.php @@ -554,11 +554,11 @@ class Configurations // extends Configuration $creationDateMask = str_replace(' \\d\\e ', ' [xx] ', $creationDateMask); } - for ($i = 0; $i < strlen($creationDateMask); $i++) { - if ($creationDateMask[$i] != ' ' && isset($maskTime[$creationDateMask[$i]])) { - $newCreation .= $maskTime[$creationDateMask[$i]]; + for ($j = 0; $j < strlen($creationDateMask); $j++) { + if ($creationDateMask[$j] != ' ' && isset($maskTime[$creationDateMask[$j]])) { + $newCreation .= $maskTime[$creationDateMask[$j]]; } else { - $newCreation .= $creationDateMask[$i]; + $newCreation .= $creationDateMask[$j]; } }