Index: trunk/extensions/CentralNotice/SpecialCentralNotice.php |
— | — | @@ -529,11 +529,7 @@ |
530 | 530 | $startArray['min'] . '00' |
531 | 531 | ; |
532 | 532 | $projectSelected = $wgRequest->getVal( 'project_name' ); |
533 | | - if ( $wgRequest->getArray( 'project_languages' ) ) { |
534 | | - $noticeLanguages = $wgRequest->getArray( 'project_languages' ); |
535 | | - } else { |
536 | | - $noticeLanguages = array(); |
537 | | - } |
| 533 | + $noticeLanguages = $wgRequest->getArray( 'project_languages', array() ); |
538 | 534 | } else { // Defaults |
539 | 535 | $startTimestamp = null; |
540 | 536 | $projectSelected = ''; |
— | — | @@ -754,11 +750,7 @@ |
755 | 751 | $endArray['day'] . '000000' |
756 | 752 | ; |
757 | 753 | $projectSelected = $wgRequest->getVal( 'project_name' ); |
758 | | - if ( $wgRequest->getArray( 'project_languages' ) ) { |
759 | | - $noticeLanguages = $wgRequest->getArray( 'project_languages' ); |
760 | | - } else { |
761 | | - $noticeLanguages = array(); |
762 | | - } |
| 754 | + $noticeLanguages = $wgRequest->getArray( 'project_languages', array() ); |
763 | 755 | } else { // Defaults |
764 | 756 | $startTimestamp = $row->not_start; |
765 | 757 | $endTimestamp = $row->not_end; |