mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
gradebook MDL-25713 now closing the recordset even when theres a problem
This commit is contained in:
parent
2f9ea7d78e
commit
fc61acce12
@ -187,7 +187,8 @@ abstract class grade_object {
|
||||
$rs = $DB->get_recordset_select($table, $wheresql, $newparams);
|
||||
//returning false rather than empty array if nothing found
|
||||
if (!$rs->valid()) {
|
||||
return false;
|
||||
$rs->close();
|
||||
return false;
|
||||
}
|
||||
|
||||
$result = array();
|
||||
|
Loading…
x
Reference in New Issue
Block a user