Index: trunk/extensions/UploadWizard/includes/UploadWizardCampaign.php |
— | — | @@ -483,6 +483,12 @@ |
484 | 484 | protected function writePropsToDB( DatabaseBase $dbw ) { |
485 | 485 | $success = true; |
486 | 486 | |
| 487 | + if ( array_key_exists( 'defaultOwnWorkLicence', $this->config ) |
| 488 | + && array_key_exists( 'licensesOwnWork', $this->config ) |
| 489 | + && !in_array( $this->config['defaultOwnWorkLicence'], $this->config['licensesOwnWork'] ) ) { |
| 490 | + $this->config['licensesOwnWork'][] = $this->config['defaultOwnWorkLicence']; |
| 491 | + } |
| 492 | + |
487 | 493 | $dbw->begin(); |
488 | 494 | |
489 | 495 | foreach ( $this->config as $prop => $value ) { |