From: hickert Date: Thu, 20 Oct 2005 05:50:55 +0000 (+0000) Subject: Use numeric index for arrays X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9620f6f1950569ae4225778cb33b9c70553e4a66;p=gosa.git Use numeric index for arrays git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1625 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiManagement.inc b/plugins/admin/fai/class_faiManagement.inc index b367e996a..bd5c1fb3b 100644 --- a/plugins/admin/fai/class_faiManagement.inc +++ b/plugins/admin/fai/class_faiManagement.inc @@ -319,7 +319,7 @@ class faiManagement extends plugin $name = $this->dialog->save(); $this->dialog = new $a_setup[0]($this->config, - $this->config->data['TABS'][$a_setup[2]],$this->dn); + $this->config->data['TABS'][$a_setup[2]],$this->dn,$name); $this->dialog->by_object[$a_setup[1]]->cn = $name; $this->is_dialog = true; } @@ -686,6 +686,15 @@ class faiManagement extends plugin } ksort($this->objects); reset ($this->objects); + + /* use numeric index, thats a bit more secure */ + $tmp0 = array(); + foreach($this->objects as $obj){ + $tmp0[]= $obj; + } + $this->objects = array(); + $this->objects = $tmp0; + } function remove_lock()