X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fallfriends.php;h=7726d04562c3bf82a8a5f1c65361c4e415eab60b;hb=0ec44f3e8a73229c3aadea86f61b5571a701c6b7;hp=d85d3ec9b36938f015e3f197c154ed086d98c6f7;hpb=78114c13d5ce27b36682a960859056d4ebf9d9be;p=friendica.git diff --git a/mod/allfriends.php b/mod/allfriends.php index d85d3ec9b3..7726d04562 100644 --- a/mod/allfriends.php +++ b/mod/allfriends.php @@ -2,11 +2,12 @@ /** * @file mod/allfriends.php */ + use Friendica\App; use Friendica\Content\ContactSelector; use Friendica\Core\L10n; use Friendica\Core\System; -use Friendica\Database\DBM; +use Friendica\Database\DBA; use Friendica\Model\Contact; use Friendica\Model\GContact; use Friendica\Model\Profile; @@ -33,9 +34,9 @@ function allfriends_content(App $a) $uid = $a->user['uid']; - $contact = dba::selectFirst('contact', ['name', 'url', 'photo'], ['id' => $cid, 'uid' => local_user()]); + $contact = DBA::selectFirst('contact', ['name', 'url', 'photo'], ['id' => $cid, 'uid' => local_user()]); - if (!DBM::is_result($contact)) { + if (!DBA::is_result($contact)) { return; } @@ -47,7 +48,7 @@ function allfriends_content(App $a) $a->set_pager_total($total); $r = GContact::allFriends(local_user(), $cid, $a->pager['start'], $a->pager['itemspage']); - if (!DBM::is_result($r)) { + if (!DBA::is_result($r)) { $o .= L10n::t('No friends to display.'); return $o; }