From c7c92af0c7e16fbcb217a88b31970c554076f2a7 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Mon, 29 Sep 2008 10:14:45 +0000 Subject: [PATCH] Fix r41377 - Incompatible old keys caused Fatal Error --- includes/Interwiki.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Interwiki.php b/includes/Interwiki.php index 4fa6b520d3..3d0f216f40 100644 --- a/includes/Interwiki.php +++ b/includes/Interwiki.php @@ -123,7 +123,7 @@ class Interwiki { global $wgMemc; $key = wfMemcKey( 'interwiki', $prefix ); $mc = $wgMemc->get( $key ); - if( $mc ){ + if( $mc && is_array( $mc ) ){ // is_array is hack for old keys if( $this->loadFromArray( $mc ) ){ wfDebug("Succeeded\n"); return true; -- 2.20.1