From a7004b90e964cab41d328b30b2801f8645c4ea8d Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 8 Dec 2004 17:43:09 +0000 Subject: [PATCH] (bug 1039) mCache may not be an array if cache failures are happening, so check before searching it --- includes/MessageCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/MessageCache.php b/includes/MessageCache.php index 8f0fd46327..8d868eccd6 100755 --- a/includes/MessageCache.php +++ b/includes/MessageCache.php @@ -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]; } -- 2.20.1