mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Merge "Remove useless array_filter"
This commit is contained in:
commit
97602b8a68
|
@ -160,16 +160,13 @@ class AbuseFilterViewTestBatch extends AbuseFilterView {
|
|||
}
|
||||
}
|
||||
|
||||
$action = $this->mTestAction != '0' ? $this->mTestAction : false;
|
||||
$conds[] = $this->buildTestConditions( $dbr, $action );
|
||||
|
||||
$conds = array_filter( $conds );
|
||||
|
||||
// To be added after filtering, otherwise it gets stripped
|
||||
if ( $this->mExcludeBots ) {
|
||||
$conds['rc_bot'] = 0;
|
||||
}
|
||||
|
||||
$action = $this->mTestAction != '0' ? $this->mTestAction : false;
|
||||
$conds[] = $this->buildTestConditions( $dbr, $action );
|
||||
|
||||
// Get our ChangesList
|
||||
$changesList = new AbuseFilterChangesList( $this->getSkin(), $this->mFilter );
|
||||
$output = $changesList->beginRecentChangesList();
|
||||
|
|
Loading…
Reference in a new issue