Don't count modules where course=0 (ie, they must exist in real courses)
This commit is contained in:
thepurpleblob
2007-02-21 14:58:52 +00:00
parent 830f83030c
commit 5914b10e9c
+1 -1
View File
@@ -177,7 +177,7 @@
$settings = "";
}
$count = count_records("$module->name");
$count = count_records_select("$module->name",'course<>0');
if ($module->visible) {
$visible = "<a href=\"modules.php?hide=$module->name&amp;sesskey=$USER->sesskey\" title=\"$strhide\">".