mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
"MDL-11371, The View past chat sessions should not appear if there haven't been any."
This commit is contained in:
parent
48eb7bc9de
commit
8eed94e2f0
1 changed files with 3 additions and 1 deletions
|
@ -113,13 +113,15 @@
|
|||
groups_print_activity_menu($cm, "view.php?id=$cm->id");
|
||||
|
||||
if ($currentgroup) {
|
||||
$groupselect = " AND groupid = '$currentgroup'";
|
||||
$groupparam = "&groupid=$currentgroup";
|
||||
} else {
|
||||
$groupselect = "";
|
||||
$groupparam = "";
|
||||
}
|
||||
|
||||
if ($chat->studentlogs or has_capability('mod/chat:readlog',$context)) {
|
||||
if ($msg = get_records_select('chat_messages', "chatid = '$chat->id' $groupselect", '', 'id', '', 1)) {
|
||||
if ($msg = $DB->get_records_select('chat_messages', "chatid = ? $groupselect", array($chat->id))) {
|
||||
echo '<div class="reportlink">';
|
||||
echo "<a href=\"report.php?id=$cm->id\">".
|
||||
get_string('viewreport', 'chat').'</a>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue