Index: trunk/extensions/CentralNotice/SpecialNoticeText.php |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | |
44 | 44 | if ( !$templates && $this->project == 'wikipedia' ) { |
45 | 45 | $notices = CentralNoticeDB::getNotices( 'wikipedia', '', '', '', 1 ); |
46 | | - if ( $notices ) { |
| 46 | + if ( $notices && is_array($notices) ) { |
47 | 47 | foreach( $notices as $notice => $val ) { |
48 | 48 | if ( $val['language'] == '' || |
49 | 49 | $val['language'] == $this->language ) { |