Fix typo in SQL query in Model\Post\Content->countBySearch
parent
ca5f93a4d5
commit
1f8e8e4653
|
@ -141,7 +141,7 @@ class Content
|
||||||
if ($uid != 0) {
|
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];
|
$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 {
|
} 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);
|
return DBA::count(SearchIndex::getSearchTable(), $condition);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue