Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions components/com_finder/src/Model/SearchModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,12 @@ protected function getListQuery()

$query->order('ordering ' . $db->escape($direction));

/*
* Prevent invalid records from being returned in the final query.
* This can happen if the search results are queried while the indexer is running.
*/
$query->where($db->quoteName('object') . ' != ' . $db->quote(''));

/*
* If there are no optional or required search terms in the query, we
* can get the results in one relatively simple database query.
Expand Down