r114332 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114331‎ | r114332 | r114333 >
Date:23:56, 20 March 2012
Author:preilly
Status:ok
Tags:
Comment:
remove index from array
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFrontend.body.php
@@ -1210,7 +1210,7 @@
12111211
12121212 if ( self::$isBetaGroupMember ) {
12131213 $this->getSite( $site, $lang );
1214 - if ( is_array( $wgMFCustomLogos ) && isset( $wgMFCustomLogos[0]['site'] ) ) {
 1214+ if ( is_array( $wgMFCustomLogos ) && isset( $wgMFCustomLogos['site'] ) ) {
12151215 foreach ( $wgMFCustomLogos as $wgMFCustomLogo ) {
12161216 if ( isset( $wgMFCustomLogo['site'] ) && $site == $wgMFCustomLogo['site'] ) {
12171217 if ( isset( $wgMFCustomLogo['logo'] ) ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r1143341.19wmf: MFT r114332preilly00:02, 21 March 2012
r114339Followup r114332, r114336 - updating in MobileFrontend.php to reflect change...awjrichards00:31, 21 March 2012

Status & tagging log