Index: trunk/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.body.php |
— | — | @@ -158,7 +158,7 @@ |
159 | 159 | } |
160 | 160 | if ( self::$isMainPage ) { |
161 | 161 | $redirect = SpecialPage::getTitleFor( 'ZeroRatedMobileAccess' )->getLocalUrl(); |
162 | | - if ( stristr( self::$carrier, 'DIGI' ) !== FALSE ) { |
| 162 | + if ( isset( self::$carrier['name'] ) && stristr( self::$carrier['name'], 'DIGI' ) !== FALSE ) { |
163 | 163 | $redirect = 'http://en.zero.wikipedia.org/wiki/Special:ZeroRatedMobileAccess'; |
164 | 164 | } |
165 | 165 | $wgRequest->response()->header( 'Location: ' . $redirect ); |