mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Fix incorrect var name and unnecessary (object) cast
This commit is contained in:
parent
ab9a01f2b7
commit
df5f916570
1 changed files with 3 additions and 3 deletions
|
@ -735,12 +735,12 @@ class mssql_native_moodle_database extends moodle_database {
|
|||
$results = array();
|
||||
|
||||
foreach ($rs as $row) {
|
||||
$id = reset($row);
|
||||
if (isset($return[$id])) {
|
||||
$id = reset($row);
|
||||
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);
|
||||
}
|
||||
$results[$id] = (object)$row;
|
||||
$results[$id] = $row;
|
||||
}
|
||||
$rs->close();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue