From 1f8e8e4653cf4d4a135eb2758e1257c943a857fa Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 24 Jul 2024 15:16:39 -0400 Subject: [PATCH] Fix typo in SQL query in Model\Post\Content->countBySearch --- src/Model/Post/Content.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Post/Content.php b/src/Model/Post/Content.php index 253e3f26cf..8f0a668c74 100644 --- a/src/Model/Post/Content.php +++ b/src/Model/Post/Content.php @@ -141,7 +141,7 @@ class Content if ($uid != 0) { $condition = ["MATCH (`searchtext`) AGAINST (? IN BOOLEAN MODE) AND (NOT `restricted` OR `uri-id` IN (SELECT `uri-id` FROM `post-user` WHERE `uid` = ?))", $search, $uid]; } else { - $condition = ["MATCH (`searchtext`) AGAINST (? IN BOOLEAN MODE) AND NOT `restricted", $search]; + $condition = ["MATCH (`searchtext`) AGAINST (? IN BOOLEAN MODE) AND NOT `restricted`", $search]; } return DBA::count(SearchIndex::getSearchTable(), $condition); }