Fixed a notice
This commit is contained in:
+1
-1
@@ -80,7 +80,7 @@
|
||||
|
||||
echo '<div id="forum-view" class="forum">'; // forum-view wrapper start
|
||||
|
||||
if (!$cm->visible and !isteacher($course->id)) {
|
||||
if (empty($cm->visible) and !isteacher($course->id)) {
|
||||
notice(get_string("activityiscurrentlyhidden"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user