Merge "Don't send empty array to Database::makeList"

This commit is contained in:
jenkins-bot 2019-05-18 12:27:50 +00:00 committed by Gerrit Code Review
commit e66d30d37c

View file

@ -134,7 +134,10 @@ class ApiQueryAbuseLog extends ApiQueryBase {
}
}
$this->addWhereIf( [ 'afl_filter' => $params['filter'] ], isset( $params['filter'] ) );
$this->addWhereIf(
[ 'afl_filter' => $params['filter'] ],
isset( $params['filter'] ) && $params['filter'] !== []
);
$this->addWhereIf( [ 'afl_deleted' => 0 ], !SpecialAbuseLog::canSeeHidden() );
if ( isset( $params['wiki'] ) ) {
// 'wiki' won't be set if $wgAbuseFilterIsCentral = false