From 5583e646bc03ebfc2b24c23f2fa61dcecdb6f612 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 28 May 2004 22:46:11 +0000 Subject: [PATCH] Simplify the blockcache mData validity check to avoid other potential not-an-array crap from slipping in --- includes/BlockCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/BlockCache.php b/includes/BlockCache.php index 5b65bdc20a..135d206d9b 100644 --- a/includes/BlockCache.php +++ b/includes/BlockCache.php @@ -36,7 +36,7 @@ class BlockCache } } - if ( $this->mData === false || is_null( $this->mData ) ) { + if ( !is_array( $this->mData ) ) { # Load from DB $this->mData = array(); Block::enumBlocks( "wfBlockCacheInsert", "" ); # Calls $this->insert() -- 2.20.1