Skip to content

Commit 8f0b0bf

Browse files
authored
"Attempt to assign property 'cleanURL' on bool" fix (joomla#43444)
1 parent c6a54c1 commit 8f0b0bf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/com_finder/src/Model/SearchModel.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,12 @@ protected function getListQuery()
260260

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

263+
/*
264+
* Prevent invalid records from being returned in the final query.
265+
* This can happen if the search results are queried while the indexer is running.
266+
*/
267+
$query->where($db->quoteName('object') . ' != ' . $db->quote(''));
268+
263269
/*
264270
* If there are no optional or required search terms in the query, we
265271
* can get the results in one relatively simple database query.

0 commit comments

Comments
 (0)