diff --git a/mod/hotpot/lib.php b/mod/hotpot/lib.php index fbbbedb9106..c8575f48ea6 100644 --- a/mod/hotpot/lib.php +++ b/mod/hotpot/lib.php @@ -727,7 +727,7 @@ function hotpot_get_all_instances_in_course($modulename, $course) { if ($isteacher) { $visible = true; - } else if ($rawmod->thismodule=='hotpot') { + } else if ($modulename=='hotpot') { $visible = hotpot_is_visible($rawmod); } else { $visible = $rawmod->visible;