+ if (!empty($CFG->messaging)) {
+ $plural = 's';
+ if ($msgcount > 0) {
+ $output .= get_string('youhavemessages', 'block_course_overview', $msgcount);
+ if ($msgcount == 1) {
+ $plural = '';
+ }
+ } else {
+ $output .= get_string('youhavenomessages', 'block_course_overview');