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

@ -137,7 +137,7 @@ class grade_object {
*/
function update_from_db() {
if (empty($this->id)) {
debugging("The object could not be used in its state to retrieve a matching record from the DB, because it's id field is not set.");
debugging("The object could not be used in its state to retrieve a matching record from the DB, because its id field is not set.");
return false;
} else {
$class = get_class($this);