Skip to content

Commit

Permalink
Check array is initialised. Bug 3424.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikawhero committed Jun 6, 2005
1 parent e10ed4e commit 422eaec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions grade/lib.php
Expand Up @@ -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) {
Expand Down

0 comments on commit 422eaec

Please sign in to comment.