Skip to content

Commit

Permalink
gradebook MDL-25713 now closing the recordset even when theres a problem
Browse files Browse the repository at this point in the history
  • Loading branch information
andyjdavis committed Dec 23, 2010
1 parent 2f9ea7d commit fc61acc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/grade/grade_object.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ public static function fetch_all_helper($table, $classname, $params) {
$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();
Expand Down

0 comments on commit fc61acc

Please sign in to comment.