]> git.mxchange.org Git - friendica.git/blobdiff - mod/allfriends.php
Rename DBM method calls to DBA method calls
[friendica.git] / mod / allfriends.php
index d85d3ec9b36938f015e3f197c154ed086d98c6f7..7726d04562c3bf82a8a5f1c65361c4e415eab60b 100644 (file)
@@ -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;
        }