mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
Merge branch 'MDL-39640-master-int' of git://github.com/FMCorz/moodle
This commit is contained in:
commit
d059d80ea6
@ -179,7 +179,7 @@ if (!empty($edit) || !empty($new)) {
|
||||
$settings = array();
|
||||
$settings['name'] = $fromform->name;
|
||||
foreach($configs as $config) {
|
||||
$settings[$config] = $fromform->$config;
|
||||
$settings[$config] = isset($fromform->$config) ? $fromform->$config : null;
|
||||
}
|
||||
$success = $instance->set_option($settings);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user