Commit fc61acce authored by andyjdavis's avatar andyjdavis
Browse files

gradebook MDL-25713 now closing the recordset even when theres a problem

parent 2f9ea7d7
......@@ -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();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment