Permalink
Browse files

do not show hidden HotPots in mod/hotpot/index.php

  • Loading branch information...
gbateson
gbateson committed Apr 11, 2008
1 parent 4b0ce9f commit 1b81ef9090068b4c5e4fc6b526d2b812582a12cc
Showing with 4 additions and 1 deletion.
  1. +4 −1 mod/hotpot/index.php
View
@@ -68,7 +68,10 @@
if ($displaysection>0 && $hotpot_instance->section>0 && $displaysection<>$hotpot_instance->section) {
// do nothing (user is not diplaying this section)
} 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;
}
}
}
}

0 comments on commit 1b81ef9

Please sign in to comment.