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); }