Fixing OU report issues
authornicolasconnault <nicolasconnault>
Wed, 26 Sep 2007 12:25:16 +0000 (12:25 +0000)
committernicolasconnault <nicolasconnault>
Wed, 26 Sep 2007 12:25:16 +0000 (12:25 +0000)
grade/edit/tree/index.php
grade/lib.php

index e0366d06e5fec3080e4e582451f2008fbedc540e..4d22c2f55c1fe9836e474ef38667da146e638c9d 100644 (file)
@@ -160,6 +160,9 @@ echo '</div>';
 print_footer($course);
 die;
 
+/**
+ * TODO document
+ */
 function print_grade_tree(&$gtree, $element, $moving, &$gpr, $switch, $switchedlast=false) {
     global $CFG, $COURSE;
 
index bb70c97ed99abc13dbc66e460a0c4a5bd58902f2..c1da8f9a5eb2b1b8ac8d7d3241868a7b560de7c7 100644 (file)
@@ -800,7 +800,7 @@ class grade_tree {
         $order = key($element['children']);
         unset($element['children'][$order]);
         $element['children'][$order] =& $category_item;
-        foreach ($element['children'] as $sortorder=>$child) {
+        foreach ($element['children'] as $sortorder => $child) {
             grade_tree::category_grade_last($element['children'][$sortorder]);
         }
     }