From: Kunal Mehta Date: Wed, 18 Dec 2013 02:49:34 +0000 (-0800) Subject: Don't rely on array() == null X-Git-Tag: 1.31.0-rc.0~17588 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=c3f2858668dddbe8fefbdfa89a8c9dc96e78faa5;p=lhc%2Fweb%2Fwiklou.git Don't rely on array() == null Just use === null instead. Change-Id: I6adf066214ad5bf9ae508d190b4e3e3fd92e4736 --- diff --git a/includes/specials/SpecialBlockList.php b/includes/specials/SpecialBlockList.php index 5610143935..4e4db115b3 100644 --- a/includes/specials/SpecialBlockList.php +++ b/includes/specials/SpecialBlockList.php @@ -230,7 +230,7 @@ class BlockListPager extends TablePager { function getFieldNames() { static $headers = null; - if ( $headers == array() ) { + if ( $headers === null ) { $headers = array( 'ipb_timestamp' => 'blocklist-timestamp', 'ipb_target' => 'blocklist-target',