From: Brion Vibber Date: Fri, 28 May 2004 22:46:11 +0000 (+0000) Subject: Simplify the blockcache mData validity check to avoid other potential not-an-array... X-Git-Tag: 1.5.0alpha1~3172 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=5583e646bc03ebfc2b24c23f2fa61dcecdb6f612;p=lhc%2Fweb%2Fwiklou.git Simplify the blockcache mData validity check to avoid other potential not-an-array crap from slipping in --- 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()