]> git.mjollnir.org Git - moodle.git/commitdiff
Modified to obtain the visible property too. To use it when showing the list
authorstronk7 <stronk7>
Thu, 24 Apr 2003 15:17:43 +0000 (15:17 +0000)
committerstronk7 <stronk7>
Thu, 24 Apr 2003 15:17:43 +0000 (15:17 +0000)
of instances of every mod (bug #364)

lib/datalib.php

index 8da984b672e9371f065f06a72a4bd69a1642d7dd..ed94653edea1d88e828287bd101464feca531f57 100644 (file)
@@ -1008,7 +1008,7 @@ function get_all_instances_in_course($modulename, $courseid, $sort="cw.section")
         $showvisible = "AND cm.visible = '1'";
     }
 
-    return get_records_sql("SELECT m.*,cw.section,cm.id as coursemodule 
+    return get_records_sql("SELECT m.*,cw.section,cm.id as coursemodule,cm.visible as visible 
                             FROM {$CFG->prefix}course_modules cm, 
                                  {$CFG->prefix}course_sections cw, 
                                  {$CFG->prefix}modules md,