Fixed Bug #5071 - The script uploaduser.php ignores the rest of records after

the first one
This commit is contained in:
vyshane 2006-04-10 04:54:34 +00:00
parent 30c9e6947d
commit 0bcf4732fa

View File

@ -322,11 +322,13 @@ if ($um->preprocess_files() && confirm_sesskey()) {
$ret = enrol_student($user->id, $course[$i]->id);
break;
}
if ($ret) { // OK
notify('-->'. get_string('enrolledincourse', '', $addcourse[$i]));
} else {
notify('-->'.get_string('enrolledincoursenot', '', $addcourse[$i]));
}
} else {
$ret = enrol_student($user->id, $course[$i]->id);
}
if ($ret) { // OK
notify('-->'. get_string('enrolledincourse', '', $addcourse[$i]));
} else {
notify('-->'.get_string('enrolledincoursenot', '', $addcourse[$i]));
}
}
}