X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fnotes.php;h=99114add8c87a6e2971f65f0795b19d3b17eca3d;hb=269221f0133b7961c7df403a44e20420c45c1d44;hp=fb42408c60387a8cbc11f994d61a7ba5884cd399;hpb=97e95473a1f4d748e9f61f4d430a68bfedeae222;p=friendica.git diff --git a/mod/notes.php b/mod/notes.php index fb42408c60..99114add8c 100644 --- a/mod/notes.php +++ b/mod/notes.php @@ -68,20 +68,20 @@ function notes_content(App $a, $update = false) $params = ['order' => ['created' => true], 'limit' => [$a->pager['start'], $a->pager['itemspage']]]; - $r = Item::select(local_user(), ['item_id'], $condition, $params); + $r = Item::selectForUser(local_user(), ['item_id'], $condition, $params); if (DBM::is_result($r)) { $parents_arr = []; - while ($rr = dba::fetch($r)) { + while ($rr = Item::fetch($r)) { $parents_arr[] = $rr['item_id']; } dba::close($r); $condition = ['uid' => local_user(), 'parent' => $parents_arr]; - $result = Item::select(local_user(), [], $condition); + $result = Item::selectForUser(local_user(), [], $condition); if (DBM::is_result($result)) { - $items = conv_sort(dba::inArray($result), 'commented'); + $items = conv_sort(Item::inArray($result), 'commented'); $o .= conversation($a, $items, 'notes', $update); } }