]> git.mjollnir.org Git - moodle.git/commit
datalib:get_courses_wmanagers() handle empty $CFG->coursemanager more gracefully
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:54:23 +0000 (07:54 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:54:23 +0000 (07:54 +0000)
commitb1cff118c7626d44156bad7f8435346086b1b79e
treef36a143578d9da0747d4866e0d47e62343a29c40
parentaba5f469f6611ebea3f8a2c1403c05f395379e83
datalib:get_courses_wmanagers() handle empty $CFG->coursemanager more gracefully

Having no roles set as coursemanager is a valid setting.
get_courses_wmanagers() should not produce invalid SQL on it...
actually, it should not even try to get the course managers.
lib/datalib.php