Don't count modules where course=0 (ie, they must exist in real courses)
This commit is contained in:
thepurpleblob
2007-02-21 14:55:32 +00:00
parent 7939a4a0cb
commit bd6648ea93
+1 -1
View File
@@ -170,7 +170,7 @@
$settings = "";
}
$count = count_records("$module->name");
$count = count_records_select("$module->name",'course<>0');
if ($count>0) {
$countlink = "<a href=\"{$CFG->wwwroot}/course/search.php?modulelist=$module->name" .
"&amp;sesskey={$USER->sesskey}\" title=\"$strshowmodulecourse\">$count</a>";