mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
Replace empty() with a null compare
empty() should only be used to suppress errors Found by a new phan plugin (T234237) Change-Id: I5428b4bfe17b5d3a3aca6f07795a1b84af2eaf37
This commit is contained in:
parent
04b3165ed0
commit
97a8f0ae6c
|
@ -79,7 +79,7 @@ class AbuseFilterHistoryPager extends TablePager {
|
|||
public function getFieldNames() {
|
||||
static $headers = null;
|
||||
|
||||
if ( !empty( $headers ) ) {
|
||||
if ( $headers !== null ) {
|
||||
return $headers;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue