Merge "Remove useless array_filter"

This commit is contained in:
jenkins-bot 2018-10-19 10:14:56 +00:00 committed by Gerrit Code Review
commit 97602b8a68

View file

@ -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();