From 4fad7af8e1fdec3f23bc69b8eb7ba9f5cbd29a80 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 27 Apr 2004 10:18:11 +0000 Subject: [PATCH] Bold teachers --- blocks/online_users/block_online_users.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blocks/online_users/block_online_users.php b/blocks/online_users/block_online_users.php index 69fddecd43..9b7b9f6521 100644 --- a/blocks/online_users/block_online_users.php +++ b/blocks/online_users/block_online_users.php @@ -65,7 +65,7 @@ class CourseBlock_online_users extends MoodleBlock { $groupmembers WHERE u.id = s.userid and s.course = {$this->course->id} and - s.timeaccess > $timefrom $select ORDER BY s.timeaccess ASC"); + s.timeaccess > $timefrom $select ORDER BY s.timeaccess DESC"); $teachers = get_records_sql("SELECT u.id, u.username, u.firstname, u.lastname, u.picture, s.timeaccess FROM {$CFG->prefix}user u, @@ -73,7 +73,7 @@ class CourseBlock_online_users extends MoodleBlock { $groupmembers WHERE u.id = s.userid and s.course = {$this->course->id} and - s.timeaccess > $timefrom $select ORDER BY s.timeaccess ASC"); + s.timeaccess > $timefrom $select ORDER BY s.timeaccess DESC"); if ($teachers || $students) { if ($students) { @@ -84,7 +84,7 @@ class CourseBlock_online_users extends MoodleBlock { } if ($teachers) { foreach ($teachers as $teacher) { - $teacher->fullname = fullname($teacher); + $teacher->fullname = ''.fullname($teacher).''; $users[$teacher->id] = $teacher; } } -- 2.39.5