]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Console/GlobalCommunitySilence.php
Merge pull request #5599 from annando/postupdate
[friendica.git] / src / Core / Console / GlobalCommunitySilence.php
index 6220a507f3ca02f744519a685212f26f4cc505ee..2b25d84433cf0fbe2f51ecc8772a13bc2f571a8b 100644 (file)
@@ -4,7 +4,6 @@ namespace Friendica\Core\Console;
 
 use Friendica\Core\Protocol;
 use Friendica\Database\DBA;
-use Friendica\Database\DBM;
 use Friendica\Network\Probe;
 use RuntimeException;
 
@@ -82,7 +81,7 @@ HELP;
 
                $nurl = normalise_link($net['url']);
                $contact = DBA::selectFirst("contact", ["id"], ["nurl" => $nurl, "uid" => 0]);
-               if (DBM::is_result($contact)) {
+               if (DBA::isResult($contact)) {
                        DBA::update("contact", ["hidden" => true], ["id" => $contact["id"]]);
                        $this->out('NOTICE: The account should be silenced from the global community page');
                } else {