(bug 1039) mCache may not be an array if cache failures are happening, so check befor...
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 8 Dec 2004 17:43:09 +0000 (17:43 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 8 Dec 2004 17:43:09 +0000 (17:43 +0000)
includes/MessageCache.php

index 8f0fd46..8d868ec 100755 (executable)
@@ -230,7 +230,7 @@ class MessageCache
                        }
 
                        # Try the cache
-                       if( $this->mUseCache && $this->mCache && array_key_exists( $title, $this->mCache ) ) {
+                       if( $this->mUseCache && is_array( $this->mCache ) && array_key_exists( $title, $this->mCache ) ) {
                                $message = $this->mCache[$title];
                        }