From: Michael Date: Sat, 9 Jun 2018 20:08:15 +0000 (+0000) Subject: $r was still in use X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b6c344a80a028df3607306f1fa8928ec5ac72796;p=friendica.git $r was still in use --- diff --git a/include/api.php b/include/api.php index 95b462ae7f..dba20d4c1b 100644 --- a/include/api.php +++ b/include/api.php @@ -1695,11 +1695,13 @@ function api_statuses_home_timeline($type) $params = ['order' => ['id' => true], 'limit' => [$start, $count]]; $statuses = Item::select(api_user(), [], $condition, $params); - $ret = api_format_items(dba::inArray($statuses), $user_info, false, $type); + $items = dba::inArray($statuses); + + $ret = api_format_items($items, $user_info, false, $type); // Set all posts from the query above to seen $idarray = []; - foreach ($r as $item) { + foreach ($items as $item) { $idarray[] = intval($item["id"]); }