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

This commit is contained in:
andyjdavis 2010-12-23 10:07:08 +08:00
parent 2f9ea7d78e
commit fc61acce12

View File

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