]> git.mxchange.org Git - friendica.git/blobdiff - util/global_community_silence.php
The automatic database update had worked endlessly
[friendica.git] / util / global_community_silence.php
index e6c936f0dda8e7334e0566c3984fa781225b0d18..14cd06e7aa458ae5611f880f447a6b0d92c59503 100755 (executable)
@@ -57,7 +57,7 @@ if (in_array($net['network'], array(NETWORK_PHANTOM, NETWORK_MAIL))) {
        exit(1);
 }
 $nurl = normalise_link($net['url']);
-$r = dba::select("contact", array("id"), array("nurl" => $nurl, "uid" => 0), array("limit" => 1));
+$r = dba::selectFirst("contact", ["id"], ["nurl" => $nurl, "uid" => 0]);
 if (DBM::is_result($r)) {
        dba::update("contact", array("hidden" => true), array("id" => $r["id"]));
        echo "NOTICE: The account should be silenced from the global community page\r\n";