From: moodler Date: Mon, 21 Jul 2003 01:35:28 +0000 (+0000) Subject: Only show "recent activity" for chats in the current course. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=cea57965453172baddfe93f3fcb0f5660558048f;p=moodle.git Only show "recent activity" for chats in the current course. --- diff --git a/mod/chat/lib.php b/mod/chat/lib.php index df47ca55b2..c00254473d 100644 --- a/mod/chat/lib.php +++ b/mod/chat/lib.php @@ -100,8 +100,11 @@ function chat_print_recent_activity($course, $isteacher, $timestart) { if (!$chatusers = get_records_sql("SELECT u.id, cu.chatid, u.firstname, u.lastname FROM {$CFG->prefix}chat_users as cu, + {$CFG->prefix}chat as ch, {$CFG->prefix}user as u WHERE cu.userid = u.id + AND cu.chatid = ch.id + AND ch.course = '$course->id' ORDER BY cu.chatid ASC") ) { return false; }