mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
"MDL-11371, The View past chat sessions should not appear if there haven't been any, merged from 1.9"
This commit is contained in:
parent
7f46236fcd
commit
c260ac7db6
@ -119,10 +119,12 @@
|
||||
}
|
||||
|
||||
if ($chat->studentlogs or has_capability('mod/chat:readlog',$context)) {
|
||||
echo '<div class="reportlink">';
|
||||
echo "<a href=\"report.php?id=$cm->id\">".
|
||||
get_string('viewreport', 'chat').'</a>';
|
||||
echo '</div>';
|
||||
if ($msg = get_records_select('chat_messages', "chatid = '$chat->id' $groupselect", '', 'id', '', 1)) {
|
||||
echo '<div class="reportlink">';
|
||||
echo "<a href=\"report.php?id=$cm->id\">".
|
||||
get_string('viewreport', 'chat').'</a>';
|
||||
echo '</div>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user