mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 01:25:21 +02:00
Some more forgotten DBA::close
This commit is contained in:
parent
9ccdbd9349
commit
f75009c20c
14 changed files with 24 additions and 3 deletions
|
@ -68,7 +68,7 @@ function msearch_post(App $a)
|
|||
$perpage
|
||||
);
|
||||
|
||||
while($search_result = DBA::fetch($search_stmt)) {
|
||||
while ($search_result = DBA::fetch($search_stmt)) {
|
||||
$results[] = [
|
||||
'name' => $search_result['name'],
|
||||
'url' => DI::baseUrl() . '/profile/' . $search_result['nickname'],
|
||||
|
@ -77,6 +77,8 @@ function msearch_post(App $a)
|
|||
];
|
||||
}
|
||||
|
||||
DBA::close($search_stmt);
|
||||
|
||||
$output = ['total' => $total, 'items_page' => $perpage, 'page' => $page, 'results' => $results];
|
||||
|
||||
echo json_encode($output);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue