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.

This commit is contained in:
Roly Rudy Gutierrez Pinto
2014-05-06 16:23:08 -04:00
parent c8540cd241
commit 36fbeb2b78

View File

@@ -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];
}
}