mirror of
https://github.com/moodle/moodle.git
synced 2025-04-25 10:26:17 +02:00
MDL-39640 repository: Prevent notice when editing an instance
This commit is contained in:
parent
2c59e0ffaa
commit
0f387618cd
@ -180,7 +180,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