Skip to content

Commit 3a545f5

Browse files
authored
Merge pull request #682 from magefan/magefan-patch-52
Update Collection.php
2 parents 6947991 + 9f163da commit 3a545f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Model/ResourceModel/Post/Collection.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,10 @@ public function addArchiveFilter($year, $month)
369369
*/
370370
public function addSearchFilter($term)
371371
{
372+
if (!$term) {
373+
$term = '__EMPTY_SEARCH_VALUE__';
374+
}
375+
372376
$tagPostIds = [];
373377
$connection = $this->getConnection();
374378
$select = $connection->select()

0 commit comments

Comments
 (0)