From bf2e403d5c495eafea3efff6b96f8a3993bc927f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be>
Date: Mon, 16 Jan 2017 10:44:23 +0100
Subject: [PATCH] New fix for the sonar spotted bug, $i was conflicting as
 well, using $j now, should be fine.

---
 setup/class_setupStep_Migrate.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/setup/class_setupStep_Migrate.inc b/setup/class_setupStep_Migrate.inc
index 5d4d58460..984b3a687 100644
--- a/setup/class_setupStep_Migrate.inc
+++ b/setup/class_setupStep_Migrate.inc
@@ -814,8 +814,8 @@ class Step_Migrate extends setupStep
 
               if (isset($ret['gosaAclTemplate'])) {
                 $cnt = $ret['gosaAclTemplate']['count'];
-                for ($i = 0; $i < $cnt; $i++) {
-                  $a_str = $ret['gosaAclTemplate'][$i];
+                for ($j = 0; $j < $cnt; $j++) {
+                  $a_str = $ret['gosaAclTemplate'][$j];
                   if (preg_match("/^[0-9]*:psub:/", $a_str) && preg_match("/:all;cmdrw$/", $a_str)) {
 
                     $members = explode(",", $tmp[3]);
-- 
GitLab