r62222 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62221‎ | r62222 | r62223 >
Date:04:17, 10 February 2010
Author:werdna
Status:ok
Tags:
Comment:
Fix annoying bug spewing warnings into the error logs
Modified paths:
  • /trunk/extensions/CentralNotice/SpecialNoticeText.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/SpecialNoticeText.php
@@ -42,7 +42,7 @@
4343
4444 if ( !$templates && $this->project == 'wikipedia' ) {
4545 $notices = CentralNoticeDB::getNotices( 'wikipedia', '', '', '', 1 );
46 - if ( $notices ) {
 46+ if ( $notices && is_array($notices) ) {
4747 foreach( $notices as $notice => $val ) {
4848 if ( $val['language'] == '' ||
4949 $val['language'] == $this->language ) {

Status & tagging log