Skip to content

Commit

Permalink
Merge branch 'MDL-39640-23' of git://github.com/FMCorz/moodle into MO…
Browse files Browse the repository at this point in the history
…ODLE_23_STABLE
  • Loading branch information
Damyon Wiese committed May 27, 2013
2 parents be5a3e6 + 63e3141 commit ec928e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repository/manage_instances.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
$settings = array(); $settings = array();
$settings['name'] = $fromform->name; $settings['name'] = $fromform->name;
foreach($configs as $config) { foreach($configs as $config) {
$settings[$config] = $fromform->$config; $settings[$config] = isset($fromform->$config) ? $fromform->$config : null;
} }
$success = $instance->set_option($settings); $success = $instance->set_option($settings);
} else { } else {
Expand Down

0 comments on commit ec928e8

Please sign in to comment.