]> git.mjollnir.org Git - moodle.git/commitdiff
Changed the get_course_mods function to obtain the visible property too.
authorstronk7 <stronk7>
Wed, 23 Apr 2003 16:09:56 +0000 (16:09 +0000)
committerstronk7 <stronk7>
Wed, 23 Apr 2003 16:09:56 +0000 (16:09 +0000)
lib/datalib.php

index 826563f4b2df949c2b9df306b9aa7dc97c6dfa7d..e73772cb89b3e0bec822dc5a89b13e6a002df5ee 100644 (file)
@@ -969,7 +969,7 @@ function get_course_mods($courseid) {
 /// Just gets a raw list of all modules in a course
     global $CFG;
 
-    return get_records_sql("SELECT cm.*, m.name as modname
+    return get_records_sql("SELECT cm.*, m.name as modname, cm.visible as visible
                             FROM {$CFG->prefix}modules m, {$CFG->prefix}course_modules cm
                             WHERE cm.course = '$courseid' 
                             AND cm.deleted = '0'