From: Niklas Laxström Date: Fri, 2 May 2008 16:04:06 +0000 (+0000) Subject: * Really fix fallbacks X-Git-Tag: 1.31.0-rc.0~47947 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=440763305364601b20aeaab79245ca997e924fd8;p=lhc%2Fweb%2Fwiklou.git * Really fix fallbacks Apparently $wgMemc->get can return either FALSE or NULL on failure, depending on the cache engine used... blah --- diff --git a/languages/Language.php b/languages/Language.php index 3a29013397..dad82aa5f2 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -2188,7 +2188,7 @@ class Language { $memcKey = wfMemcKey( 'fallback', $code ); $fbcode = $wgMemc->get( $memcKey ); - if ( $fbcode !== null ) { + if ( is_string($fbcode) ) { wfDebug( __METHOD__ . ": got fallback for $code from memc: '$fbcode'\n" ); if ( $fbcode === '' ) $fbcode = false; return $fbcode;