mirror of
https://github.com/moodle/moodle.git
synced 2025-03-18 22:50:19 +01:00
Fixed Bug #5071 - The script uploaduser.php ignores the rest of records after
the first one
This commit is contained in:
parent
30c9e6947d
commit
0bcf4732fa
@ -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]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user