From 6089d5a075d6882f4d0a2ea79448d56d285d31ea Mon Sep 17 00:00:00 2001 From: dongsheng Date: Wed, 18 Jun 2008 01:45:01 +0000 Subject: [PATCH] "MDL-15278, see tracker" --- mod/chat/report.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mod/chat/report.php b/mod/chat/report.php index 93bd0b69f5..2d6de6f138 100644 --- a/mod/chat/report.php +++ b/mod/chat/report.php @@ -24,7 +24,7 @@ $context = get_context_instance(CONTEXT_MODULE, $cm->id); require_login($course->id, false, $cm); - require_capability('mod/chat:readlog', $context); + require_capability('mod/chat:readlog', $context); add_to_log($course->id, 'chat', 'report', "report.php?id=$cm->id", $chat->id, $cm->id); @@ -35,7 +35,7 @@ $strdeletesession = get_string('deletesession', 'chat'); $navlinks = array(); - + /// Print a session if one has been specified if ($start and $end and !$confirmdelete) { // Show a full transcript @@ -62,9 +62,7 @@ "report.php?id=$cm->id"); } - if (!$messages = $DB->get_records_select('chat_messages', "chatid = :chatid AND - timestamp >= :start AND - timestamp <= :end $groupselect", "timestamp ASC", $params)) { + if (!$messages = $DB->get_records_select('chat_messages', "chatid = :chatid AND timestamp >= :start AND timestamp <= :end $groupselect", $params, "timestamp ASC")) { print_heading(get_string('nomessages', 'chat')); } else { -- 2.39.5