MDL-9506 Removed the debugging message for the fetch() methods. Added droplow and keephigh rules to grade_category::aggregate_grades(). The only question now is what to do when the droplow or keephigh field is larger than the number of grades for a given user/item combination. At the moment it just gives that value 0.

This commit is contained in:
nicolasconnault 2007-05-21 05:54:12 +00:00
parent d0e84e1be0
commit ab53054fd1
11 changed files with 93 additions and 63 deletions

View file

@ -426,7 +426,6 @@ class grade_item extends grade_object {
return $grade_item;
}
} else {
debugging("No grade_item matching these criteria in the database.");
return false;
}
}
@ -513,7 +512,7 @@ class grade_item extends grade_object {
$this->grade_grades_raw[$userid] = $raw_grade;
}
} else {
debugging("The data given to grade_item::save_raw($data) was not valid, it must be an arra of raw grades.");
debugging("The data given to grade_item::save_raw($raw_grades) was not valid, it must be an array of raw grades.");
return false;
}
}