Permalink
Browse files

MDL-39640 repository: Prevent notice when editing an instance

  • Loading branch information...
1 parent f6735ae commit 63e314128b1844a8ff30240f3cff15cdfbcadd5c @FMCorz FMCorz committed May 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 repository/manage_instances.php
@@ -187,7 +187,7 @@
$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 {

0 comments on commit 63e3141

Please sign in to comment.