From 0936f59b63d7050d03ae716bd6772f745382e0d1 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Wed, 20 Jun 2007 20:10:19 +0000 Subject: [PATCH] MDL-9629 Added student names at left of grades table. --- lib/grade/grade_tree.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/grade/grade_tree.php b/lib/grade/grade_tree.php index 9b69fdf54b..8f1874f7f9 100644 --- a/lib/grade/grade_tree.php +++ b/lib/grade/grade_tree.php @@ -870,9 +870,9 @@ class grade_tree { $users = get_role_users(@implode(',', $CFG->gradebookroles), $context); - $topcathtml = ''; - $cathtml = ''; - $itemhtml = ''; + $topcathtml = ' '; + $cathtml = ' '; + $itemhtml = ' '; $items = array(); foreach ($tree as $topcat) { @@ -911,7 +911,7 @@ class grade_tree { $studentshtml = ''; foreach ($users as $userid => $user) { - $studentshtml .= ''; + $studentshtml .= '' . $user->firstname . ' ' . $user->lastname . ''; foreach ($items as $item) { if (!empty($this->grades[$userid][$item['object']->id])) { $studentshtml .= '' . $this->grades[$userid][$item['object']->id] . '' . "\n"; -- 2.39.5