Index: trunk/phase3/includes/interwiki/Interwiki.php |
— | — | @@ -185,11 +185,11 @@ |
186 | 186 | * @return Boolean: whether everything was there |
187 | 187 | */ |
188 | 188 | protected static function loadFromArray( $mc ) { |
189 | | - if( isset( $mc['iw_url'] ) && isset( $mc['iw_local'] ) && isset( $mc['iw_trans'] ) ) { |
| 189 | + if( isset( $mc['iw_url'] ) ) { |
190 | 190 | $iw = new Interwiki(); |
191 | 191 | $iw->mURL = $mc['iw_url']; |
192 | | - $iw->mLocal = $mc['iw_local']; |
193 | | - $iw->mTrans = $mc['iw_trans']; |
| 192 | + $iw->mLocal = isset( $mc['iw_local'] ) ? $mc['iw_local'] : 0; |
| 193 | + $iw->mTrans = isset( $mc['iw_trans'] ) ? $mc['iw_trans'] : 0; |
194 | 194 | $iw->mAPI = isset( $mc['iw_api'] ) ? $mc['iw_api'] : ''; |
195 | 195 | $iw->mWikiID = isset( $mc['iw_wikiid'] ) ? $mc['iw_wikiid'] : ''; |
196 | 196 | |