From: Peter Potrowl Date: Tue, 20 Jul 2010 08:47:06 +0000 (+0000) Subject: Solving an issue in r69542 X-Git-Tag: 1.31.0-rc.0~36068 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=17a69a78419603397e68bf4b2fd7001ffb5dea98;p=lhc%2Fweb%2Fwiklou.git Solving an issue in r69542 --- diff --git a/includes/Interwiki.php b/includes/Interwiki.php index 45c9dbbe9a..6a179f2763 100644 --- a/includes/Interwiki.php +++ b/includes/Interwiki.php @@ -170,14 +170,14 @@ class Interwiki { * @return Boolean: whether everything was there */ protected static function loadFromArray( $mc ) { - if( isset( $mc['iw_url'] ) && isset( $mc['iw_api'] ) && isset( $mc['iw_wikiid'] ) - && isset( $mc['iw_local'] ) && isset( $mc['iw_trans'] ) ) { + if( isset( $mc['iw_url'] ) && isset( $mc['iw_local'] ) && isset( $mc['iw_trans'] ) ) { $iw = new Interwiki(); $iw->mURL = $mc['iw_url']; - $iw->mAPI = $mc['iw_api']; - $iw->mWikiID = $mc['iw_wikiid']; $iw->mLocal = $mc['iw_local']; $iw->mTrans = $mc['iw_trans']; + $iw->mAPI = isset( $mc['iw_api'] ) ? $mc['iw_api'] : ''; + $iw->mWikiID = isset( $mc['iw_wikiid'] ) ? $mc['iw_wikiid'] : ''; + return $iw; } return false;