aboutsummaryrefslogtreecommitdiffstats
path: root/includes/MessageCache.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@users.mediawiki.org>2004-12-08 17:43:09 +0000
committerBrion Vibber <brion@users.mediawiki.org>2004-12-08 17:43:09 +0000
commita7004b90e964cab41d328b30b2801f8645c4ea8d (patch)
tree46c21d6869cbb4188197de3fd83e4a0b7adcc828 /includes/MessageCache.php
parent07b376f29a8a3985a4ab384c9de8e02cb48df09b (diff)
downloadmediawikicore-a7004b90e964cab41d328b30b2801f8645c4ea8d.tar.gz
mediawikicore-a7004b90e964cab41d328b30b2801f8645c4ea8d.zip
(bug 1039) mCache may not be an array if cache failures are happening, so check before searching it
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/6576
Diffstat (limited to 'includes/MessageCache.php')
-rwxr-xr-xincludes/MessageCache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/MessageCache.php b/includes/MessageCache.php
index 8f0fd46327a8..8d868eccd6be 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];
}