Merged from MOODLE_15_STABLE
Check array is initialised. Bug 3424.
This commit is contained in:
@@ -1656,6 +1656,9 @@ function grade_view_category_grades($view_by_student) {
|
||||
}
|
||||
}
|
||||
}
|
||||
/// Make sure $item_order is initialised (bug 3424)
|
||||
if (empty($item_order)) $item_order = array();
|
||||
|
||||
ksort($item_order);
|
||||
|
||||
foreach($grades_by_student as $student => $categories) {
|
||||
|
||||
Reference in New Issue
Block a user