mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 18:36:42 +02:00
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:
parent
d0e84e1be0
commit
ab53054fd1
11 changed files with 93 additions and 63 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue