]> git.mxchange.org Git - friendica.git/commitdiff
$r was still in use
authorMichael <heluecht@pirati.ca>
Sat, 9 Jun 2018 20:08:15 +0000 (20:08 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 9 Jun 2018 20:08:15 +0000 (20:08 +0000)
include/api.php

index 95b462ae7f31fbcaa4ad3242a83721943aae5461..dba20d4c1be3381d442299f7780c0250c61405de 100644 (file)
@@ -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"]);
        }