]> git.mjollnir.org Git - moodle.git/commitdiff
Only show visible modules in help
authormoodler <moodler>
Wed, 8 Oct 2003 01:24:49 +0000 (01:24 +0000)
committermoodler <moodler>
Wed, 8 Oct 2003 01:24:49 +0000 (01:24 +0000)
help.php

index 67643602afcdf2113111924387ca3fb79d85a299..9d1d50d5e7586a19f8a6a916d71efafa4c2d5d29 100644 (file)
--- a/help.php
+++ b/help.php
@@ -37,7 +37,7 @@
                 if ($module == "moodle" && ($file == "index.html" || $file == "mods.html")) {
                     // include file for each module
 
-                    if (!$modules = get_records("modules")) {
+                    if (!$modules = get_records("modules", "visible", 1)) {
                         error("No modules found!!");        // Should never happen
                     }