From: Pierre Rudloff Date: Mon, 18 Dec 2017 13:28:04 +0000 (+0100) Subject: Use dba::inArray() instead of dba::fetch() in api_search X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=31d63d929dab4df07fff19ba6ea7a948036bdc8e;p=friendica.git Use dba::inArray() instead of dba::fetch() in api_search --- diff --git a/include/api.php b/include/api.php index 2cf79fa5aa..b247a738d0 100644 --- a/include/api.php +++ b/include/api.php @@ -1535,12 +1535,7 @@ function api_search($type) intval($since_id) ); - $statuses = array(); - while ($row = dba::fetch($r)) { - $statuses[] = $row; - } - - $data['status'] = api_format_items($statuses, api_get_user(get_app())); + $data['status'] = api_format_items(dba::inArray($r), api_get_user(get_app())); return api_format_data("statuses", $type, $data); }