Index: trunk/extensions/UploadWizard/includes/UploadWizardCampaign.php |
— | — | @@ -300,6 +300,11 @@ |
301 | 301 | $defaultConfig = self::getDefaultConfig(); |
302 | 302 | |
303 | 303 | foreach ( $config as $settingName => &$settingValue ) { |
| 304 | + // This can happen when a campaign was created with an option that has been removed from the extension. |
| 305 | + if ( !array_key_exists( $settingName, $defaultConfig ) ) { |
| 306 | + continue; |
| 307 | + } |
| 308 | + |
304 | 309 | if ( is_array( $defaultConfig[$settingName]['default'] ) && !is_array( $settingValue ) ) { |
305 | 310 | $parts = explode( '|', $settingValue ); |
306 | 311 | $settingValue = array(); |