r3726 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r3725
|
r3726
|
r3727
>
Date:
22:46, 28 May 2004
Author:
vibber
Status:
old
Tags:
Comment:
Simplify the blockcache mData validity check to avoid other potential not-an-array crap from slipping in
Modified paths:
/trunk/phase3/includes/BlockCache.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/BlockCache.php
—
—
@@ -36,7 +36,7 @@
37
37
}
38
38
}
39
39
40
- if ( $this->mData === false || is_null( $this->mData ) ) {
40
+ if ( !is_array( $this->mData ) ) {
41
41
# Load from DB
42
42
$this->mData = array();
43
43
Block::enumBlocks( "wfBlockCacheInsert", "" ); # Calls $this->insert()
Status & tagging log
01:56, 13 October 2010
😂
(
talk
|
contribs
)
changed the
status
of r3726
[
removed:
new
added:
old]