summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6a92bb7)
raw | patch | inline | side by side (parent: 6a92bb7)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 7 Jul 2006 11:35:15 +0000 (11:35 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 7 Jul 2006 11:35:15 +0000 (11:35 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4048 594d385d-05f5-0310-b6e9-bd551577e9d8
include/functions_FAI.inc | patch | blob | history |
index e7c7380c7be70b351a18e0f6edcc8935237e1a81..de593a7ae02f230e57c332f73fdb2a7847872bd1 100644 (file)
while(isset($_SESSION['FAI_objects_to_save'][$sub_name])){
- $to_save[strlen($sub_name)."-".$sub_name] = $_SESSION['FAI_objects_to_save'][$sub_name];
+ $to_save[strlen($sub_name)][$sub_name] = $_SESSION['FAI_objects_to_save'][$sub_name];
unset($_SESSION['FAI_objects_to_save'][$sub_name]);
$sub_name = preg_replace('/^[^,]+,/', '', $sub_name);
}
/* Sort list of objects that must be saved, and ensure that
container objects are safed, before their childs are saved */
ksort($to_save);
+
+ $tmp = array();
+ foreach($to_save as $SubObjects){
+ foreach($SubObjects as $object){
+ $tmp[] = $object;
+ }
+ }
+
+ $to_save = $tmp;
/* Save objects and manage the correct release behavior*/
foreach($to_save as $save){
global $config;
$ldap = $config->get_ldap_link();
$ldap->cd($config->current['BASE']);
+ echo $dn;
+ print_a($attrs);
$ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $dn));
$ldap->cd($dn);