-
Bug
-
Resolution: Duplicate
-
Critical
-
None
-
2.0.1
-
None
-
MOODLE_20_STABLE
During a grade import where I set map to and map from to user id number I got the following error message several times:
Error: mdb->get_record() found more than one record!
line 1268 of /lib/dml/moodle_database.php: call to debugging()
line 1228 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
line 1208 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
line 278 of /grade/import/csv/index.php: call to moodle_database->get_record()
I'm guessing it is because a couple of the users in the csv file didn't have id numbers (blanks in the csv file) and there is no validation going on to check there is actually something there before proceeding to query the database.
Cheers
Sam