]> git.mxchange.org Git - friendica.git/blobdiff - mod/profperm.php
Rename DBM method calls to DBA method calls
[friendica.git] / mod / profperm.php
index 0f864d42f3e2b8ca66ce83c31bf55787519e2c46..e2b0738e0e09a01314a5558dc6d6c5c0ca6bdb66 100644 (file)
@@ -6,7 +6,7 @@ use Friendica\App;
 use Friendica\Core\Config;
 use Friendica\Core\L10n;
 use Friendica\Core\PConfig;
-use Friendica\Database\DBM;
+use Friendica\Database\DBA;
 use Friendica\Model\Profile;
 
 function profperm_init(App $a)
@@ -51,7 +51,7 @@ function profperm_content(App $a) {
                        intval($a->argv[2]),
                        intval(local_user())
                );
-               if (DBM::is_result($r))
+               if (DBA::is_result($r))
                        $change = intval($a->argv[2]);
        }
 
@@ -61,7 +61,7 @@ function profperm_content(App $a) {
                        intval($a->argv[1]),
                        intval(local_user())
                );
-               if (! DBM::is_result($r)) {
+               if (! DBA::is_result($r)) {
                        notice(L10n::t('Invalid profile identifier.') . EOL );
                        return;
                }
@@ -73,7 +73,7 @@ function profperm_content(App $a) {
                );
 
                $ingroup = [];
-               if (DBM::is_result($r))
+               if (DBA::is_result($r))
                        foreach($r as $member)
                                $ingroup[] = $member['id'];
 
@@ -103,7 +103,7 @@ function profperm_content(App $a) {
                        $members = $r;
 
                        $ingroup = [];
-                       if (DBM::is_result($r))
+                       if (DBA::is_result($r))
                                foreach($r as $member)
                                        $ingroup[] = $member['id'];
                }
@@ -147,7 +147,7 @@ function profperm_content(App $a) {
                        dbesc(NETWORK_DFRN)
                );
 
-               if (DBM::is_result($r)) {
+               if (DBA::is_result($r)) {
                        $textmode = (($switchtotext && (count($r) > $switchtotext)) ? true : false);
                        foreach($r as $member) {
                                if(! in_array($member['id'],$ingroup)) {