Changed the get_course_mods function to obtain the visible property too.

This commit is contained in:
stronk7 2003-04-23 16:09:56 +00:00
parent d4269e95c0
commit 00d26a208b

View 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'