mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 02:05:19 +02:00
Olq query removed, checking for deleted as well
This commit is contained in:
parent
27b9da3df5
commit
2904f4ca0e
2 changed files with 2 additions and 16 deletions
|
@ -45,20 +45,6 @@ function msearch_post(App $a)
|
|||
|
||||
$condition = ["`net-publish` AND MATCH(`pub_keywords`) AGAINST (?)", $search];
|
||||
$total = DBA::count('owner-view', $condition);
|
||||
$count_stmt = DBA::p(
|
||||
"SELECT COUNT(*) AS `total`
|
||||
FROM `profile`
|
||||
JOIN `user` ON `user`.`uid` = `profile`.`uid`
|
||||
WHERE `profile`.`net-publish`
|
||||
AND MATCH(`pub_keywords`) AGAINST (?)",
|
||||
$search
|
||||
);
|
||||
if (DBA::isResult($count_stmt)) {
|
||||
$row = DBA::fetch($count_stmt);
|
||||
$total = $row['total'];
|
||||
}
|
||||
|
||||
DBA::close($count_stmt);
|
||||
|
||||
$search_stmt = DBA::select('owner-view', ['pub_keywords', 'name', 'nickname', 'uid'], $condition, ['limit' => [$startrec, $perpage]]);
|
||||
while ($search_result = DBA::fetch($search_stmt)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue