fixed allowed module mess, sorry for the regression

This commit is contained in:
Petr Skoda
2010-09-17 12:08:10 +00:00
parent e92c39cadc
commit c8d8100048
+1 -1
View File
@@ -3520,7 +3520,7 @@ function create_course($data, $editoroptions = NULL) {
// update module restrictions
if ($course->restrictmodules) {
if (isset($data->allowedmods)) {
update_restricted_mods($data->allowedmods);
update_restricted_mods($course, $data->allowedmods);
} else {
if (!empty($CFG->defaultallowedmodules)) {
update_restricted_mods($course, explode(',', $CFG->defaultallowedmodules));