diff --git a/maintenance/SearchFilters.php b/maintenance/SearchFilters.php index b5b172d9e..df991cfc7 100644 --- a/maintenance/SearchFilters.php +++ b/maintenance/SearchFilters.php @@ -60,7 +60,7 @@ class SearchFilters extends Maintenance { $pattern = $dbr->addQuotes( $this->getOption( 'pattern' ) ); $consequence = $this->getOption( 'consequence' ); - if ( $dbr->tableExists( 'abuse_filter' ) ) { + if ( $dbr->tableExists( 'abuse_filter', __METHOD__ ) ) { $queryBuilder = $dbr->newSelectQueryBuilder() ->select( [ 'dbname' => 'DATABASE()', 'af_id' ] ) ->from( 'abuse_filter' );