Permalink
Browse files

Check array is initialised. Bug 3424.

  • Loading branch information...
1 parent e10ed4e commit 422eaecc132c8759e232a183744986fd934e11f3 ikawhero committed Jun 6, 2005
Showing with 3 additions and 0 deletions.
  1. +3 −0 grade/lib.php
View
3 grade/lib.php
@@ -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) {

0 comments on commit 422eaec

Please sign in to comment.