fix error on line 700 when student displays hotpot/index.php

This commit is contained in:
gbateson 2005-11-10 09:00:17 +00:00
parent 6911cc8880
commit 7867d9dbce

View File

@ -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;