From aabbf1345931e8efd3fa8bf2a82525ced71ac6e8 Mon Sep 17 00:00:00 2001 From: Jean-Laurent <jean-laurent.duzant@xelians.fr> Date: Thu, 23 Jun 2022 17:35:51 +0200 Subject: [PATCH] FIX #17671 TIME 1:10 remove fix --- src/app/search/controllers/SearchController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/search/controllers/SearchController.php b/src/app/search/controllers/SearchController.php index 3f92ab67d3..dbcb1c03b4 100755 --- a/src/app/search/controllers/SearchController.php +++ b/src/app/search/controllers/SearchController.php @@ -134,7 +134,7 @@ class SearchController $canPurge = true; } - $where = [implode(' OR ', $where)]; + $where = !empty($where) ? [implode(' OR ', $where)] : []; $documents = DocumentModel::get([ 'select' => $select, -- GitLab