Skip to content

Commit

Permalink
do not show hidden HotPots in mod/hotpot/index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
gbateson committed Apr 11, 2008
1 parent 4b0ce9f commit 1b81ef9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mod/hotpot/index.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@
if ($displaysection>0 && $hotpot_instance->section>0 && $displaysection<>$hotpot_instance->section) { if ($displaysection>0 && $hotpot_instance->section>0 && $displaysection<>$hotpot_instance->section) {
// do nothing (user is not diplaying this section) // do nothing (user is not diplaying this section)
} else { } else {
$hotpots[$hotpot_instance->id] = $hotpot_instance; $cm = get_coursemodule_from_instance('hotpot', $hotpot_instance->id);
if ($cm && hotpot_is_visible($cm)) {
$hotpots[$hotpot_instance->id] = $hotpot_instance;
}
} }
} }
} }
Expand Down

0 comments on commit 1b81ef9

Please sign in to comment.