List of steps to reproduce (step by step, including full links if applicable):
- Use an SqLite DB (eg. with default docker)
- Go to Special:IndexPages and search for anything
What happens?:
What should have happened instead?:
Search results, or "no results found".
I think this is because "false" here:
public function getQueryInfo() {
$conds = [];
if ( $this->searchTerm ) {
if ( $this->searchList !== null ) {
$conds = [ 'page_namespace' => Context::getDefaultContext()->getIndexNamespaceId() ];
if ( $this->searchList ) {
$conds['page_title'] = $this->searchList;
} else {
// If not pages were found do not return results
$conds[] = 'false';
}
} else {
$conds = null;
}Changing to $conds[] = '0'; works.
