mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Merge "Don't send empty array to Database::makeList"
This commit is contained in:
commit
e66d30d37c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue