fixed duplicate id detection in get_records_sql()

This commit is contained in:
Petr Skoda 2010-09-17 20:25:02 +00:00
parent 440f65ebdb
commit 40504474ae

View File

@ -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);
}