mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
Changed the get_course_mods function to obtain the visible property too.
This commit is contained in:
parent
d4269e95c0
commit
00d26a208b
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user