modified buildUploadAccounts()

This commit is contained in:
Roland Gruber 2004-09-19 16:04:37 +00:00
parent bc73e501cc
commit 50c991fe48
1 changed files with 10 additions and 5 deletions

View File

@ -427,12 +427,17 @@ function buildUploadAccounts($scope, $data, $ids) {
for ($i = 0; $i < sizeof($data); $i++) $partialAccounts[$i]['objectClasses'] = array(); for ($i = 0; $i < sizeof($data); $i++) $partialAccounts[$i]['objectClasses'] = array();
for ($i = 0; $i < sizeof($ordered); $i++) { for ($i = 0; $i < sizeof($ordered); $i++) {
$module = new $ordered[$i]($scope); $module = new $ordered[$i]($scope);
$errors = $module->build_uploadAccounts($data, $ids, &$partialAccounts); $errors = $module->build_uploadAccounts($data, $ids, $partialAccounts);
if (sizeof($errors) > 0) break; if (sizeof($errors) > 0) {
$errors[] = array("ERROR", _("Upload was stopped after errors in $module module!"), "");
break;
}
} }
print_r($partialAccounts); if (sizeof($errors) > 0) {
print_r($errors); for ($i = 0; $i < (($i < sizeof($errors)) || ($i > 49)); $i++) call_user_func_array("StatusMessage", $errors[$i]);
return $return; return false;
}
else return $partialAccounts;
} }
/** /**