diff --git a/grade/edit/tree/index.php b/grade/edit/tree/index.php index e0366d06e5f..4d22c2f55c1 100644 --- a/grade/edit/tree/index.php +++ b/grade/edit/tree/index.php @@ -160,6 +160,9 @@ echo ''; print_footer($course); die; +/** + * TODO document + */ function print_grade_tree(&$gtree, $element, $moving, &$gpr, $switch, $switchedlast=false) { global $CFG, $COURSE; diff --git a/grade/lib.php b/grade/lib.php index bb70c97ed99..c1da8f9a5eb 100644 --- a/grade/lib.php +++ b/grade/lib.php @@ -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]); } }