diff --git a/message/lib.php b/message/lib.php index e80819d2777..0a940edb6ea 100644 --- a/message/lib.php +++ b/message/lib.php @@ -127,9 +127,6 @@ function message_print_contact_selector($countunreadtotal, $viewing, $user1, $us && has_capability('moodle/course:viewparticipants', $coursecontexts[$courseidtoshow])) { message_print_participants($coursecontexts[$courseidtoshow], $courseidtoshow, $PAGE->url, $showactionlinks, null, $page, $user2); - } else { - //shouldn't get here. User trying to access a course they're not in perhaps. - add_to_log(SITEID, 'message', 'view', 'index.php', $viewing); } }