Some more forgotten DBA::close
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user