Merge branch 'MDL-39640-24' of git://github.com/FMCorz/moodle into MOODLE_24_STABLE

This commit is contained in:
Damyon Wiese
2013-05-27 16:16:45 +08:00
+1 -1
View File
@@ -186,7 +186,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 {