mirror of
https://github.com/moodle/moodle.git
synced 2025-04-25 10:26:17 +02:00
Merged from MOODLE_15_STABLE
Check array is initialised. Bug 3424.
This commit is contained in:
parent
80002a285b
commit
5fadde8389
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user