]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Console/GlobalCommunitySilence.php
Rename Friendica\Database\dba to Friendica\Database\DBA
[friendica.git] / src / Core / Console / GlobalCommunitySilence.php
index 6330d08a12afc3f8055f733aae8673d8e0e18ad7..6220a507f3ca02f744519a685212f26f4cc505ee 100644 (file)
@@ -3,7 +3,7 @@
 namespace Friendica\Core\Console;
 
 use Friendica\Core\Protocol;
-use Friendica\Database\dba;
+use Friendica\Database\DBA;
 use Friendica\Database\DBM;
 use Friendica\Network\Probe;
 use RuntimeException;
@@ -81,9 +81,9 @@ HELP;
                }
 
                $nurl = normalise_link($net['url']);
-               $contact = dba::selectFirst("contact", ["id"], ["nurl" => $nurl, "uid" => 0]);
+               $contact = DBA::selectFirst("contact", ["id"], ["nurl" => $nurl, "uid" => 0]);
                if (DBM::is_result($contact)) {
-                       dba::update("contact", ["hidden" => true], ["id" => $contact["id"]]);
+                       DBA::update("contact", ["hidden" => true], ["id" => $contact["id"]]);
                        $this->out('NOTICE: The account should be silenced from the global community page');
                } else {
                        throw new RuntimeException('NOTICE: Could not find any entry for this URL (' . $nurl . ')');