From 206f995349df7231f7ad85806d45fd6af1b595e8 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Wed, 26 Sep 2007 12:25:16 +0000 Subject: [PATCH] Fixing OU report issues --- grade/edit/tree/index.php | 3 +++ grade/lib.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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]); } }