Index: trunk/extensions/UploadWizard/includes/specials/SpecialUploadWizard.php |
— | — | @@ -144,7 +144,7 @@ |
145 | 145 | |
146 | 146 | $defaultLicense = $this->getUser()->getOption( 'upwiz_deflicense' ); |
147 | 147 | |
148 | | - if ( $defaultLicense !== 'default' ) { |
| 148 | + if ( $defaultLicense !== 'default' && in_array( $defaultLicense, $config['licensesOwnWork']['licenses'] ) ) { |
149 | 149 | $config['licensesOwnWork']['defaults'] = array( $defaultLicense ); |
150 | 150 | } |
151 | 151 | |