MDL-15402: by default course/user repositories cannot be created/set

This commit is contained in:
jerome 2008-10-09 06:01:10 +00:00
parent f48fb4d692
commit 9f7c761af9

View File

@ -150,10 +150,14 @@ class repository_type {
//retrieve visibility from option
if (array_key_exists('enablecourseinstances',$typeoptions)) {
$this->_options['enablecourseinstances'] = $typeoptions['enablecourseinstances'];
} else {
$this->_options['enablecourseinstances'] = 0;
}
if (array_key_exists('enableuserinstances',$typeoptions)) {
$this->_options['enableuserinstances'] = $typeoptions['enableuserinstances'];
} else {
$this->_options['enableuserinstances'] = 0;
}
}