mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +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
|
@ -736,11 +736,11 @@ class mssql_native_moodle_database extends moodle_database {
|
||||||
|
|
||||||
foreach ($rs as $row) {
|
foreach ($rs as $row) {
|
||||||
$id = reset($row);
|
$id = reset($row);
|
||||||
if (isset($return[$id])) {
|
if (isset($results[$id])) {
|
||||||
$colname = key($row);
|
$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);
|
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();
|
$rs->close();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue