Index: trunk/extensions/CentralNotice/SpecialCentralNotice.php |
— | — | @@ -754,7 +754,11 @@ |
755 | 755 | $endArray['day'] . '000000' |
756 | 756 | ; |
757 | 757 | $projectSelected = $wgRequest->getVal( 'project_name' ); |
758 | | - $noticeLanguages = $wgRequest->getArray( 'project_languages' ); |
| 758 | + if ( $wgRequest->getArray( 'project_languages' ) ) { |
| 759 | + $noticeLanguages = $wgRequest->getArray( 'project_languages' ); |
| 760 | + } else { |
| 761 | + $noticeLanguages = array(); |
| 762 | + } |
759 | 763 | } else { // Defaults |
760 | 764 | $startTimestamp = $row->not_start; |
761 | 765 | $endTimestamp = $row->not_end; |