mirror of
https://github.com/moodle/moodle.git
synced 2025-03-13 20:26:32 +01:00
fixed duplicate id detection in get_records_sql()
This commit is contained in:
parent
440f65ebdb
commit
40504474ae
@ -842,7 +842,7 @@ class sqlsrv_native_moodle_database extends moodle_database {
|
||||
foreach ($rs as $row) {
|
||||
$id = reset($row);
|
||||
|
||||
if (isset($return[$id])) {
|
||||
if (isset($results[$id])) {
|
||||
$colname = key($row);
|
||||
debugging("Did you remember to make the first column something unique in your call to get_records? Duplicate value '$id' found in column '$colname'.", DEBUG_DEVELOPER);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user