Permalink
Browse files

MDL-8602

Don't count modules where course=0 (ie, they must exist in real courses)
  • Loading branch information...
1 parent 61e6471 commit c6a0fc48df94174213db2ba9997541a3763646e1 thepurpleblob committed Feb 21, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/modules.php
View
@@ -168,7 +168,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\">".

0 comments on commit c6a0fc4

Please sign in to comment.