mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
fix error on line 700 when student displays hotpot/index.php
This commit is contained in:
parent
6911cc8880
commit
7867d9dbce
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user