Index: trunk/phase3/includes/Interwiki.php |
— | — | @@ -170,14 +170,14 @@ |
171 | 171 | * @return Boolean: whether everything was there |
172 | 172 | */ |
173 | 173 | protected static function loadFromArray( $mc ) { |
174 | | - if( isset( $mc['iw_url'] ) && isset( $mc['iw_api'] ) && isset( $mc['iw_wikiid'] ) |
175 | | - && isset( $mc['iw_local'] ) && isset( $mc['iw_trans'] ) ) { |
| 174 | + if( isset( $mc['iw_url'] ) && isset( $mc['iw_local'] ) && isset( $mc['iw_trans'] ) ) { |
176 | 175 | $iw = new Interwiki(); |
177 | 176 | $iw->mURL = $mc['iw_url']; |
178 | | - $iw->mAPI = $mc['iw_api']; |
179 | | - $iw->mWikiID = $mc['iw_wikiid']; |
180 | 177 | $iw->mLocal = $mc['iw_local']; |
181 | 178 | $iw->mTrans = $mc['iw_trans']; |
| 179 | + $iw->mAPI = isset( $mc['iw_api'] ) ? $mc['iw_api'] : ''; |
| 180 | + $iw->mWikiID = isset( $mc['iw_wikiid'] ) ? $mc['iw_wikiid'] : ''; |
| 181 | + |
182 | 182 | return $iw; |
183 | 183 | } |
184 | 184 | return false; |