mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
Merge branch 'MDL-42618_master' of git://github.com/SWiT/moodle
This commit is contained in:
commit
3b854e8c2a
@ -235,7 +235,7 @@ if ($formdata = $mform2->get_data()) {
|
||||
$studentid = $value;
|
||||
break;
|
||||
case 'useridnumber':
|
||||
if (!$user = $DB->get_record('user', array('idnumber' => $value))) {
|
||||
if (empty($value) || !$user = $DB->get_record('user', array('idnumber' => $value))) {
|
||||
// user not found, abort whole import
|
||||
import_cleanup($importcode);
|
||||
echo $OUTPUT->notification("user mapping error, could not find user with idnumber \"$value\"");
|
||||
|
Loading…
x
Reference in New Issue
Block a user