From dfe11b1863d8b9c1c96052fe2e93db3e18368e20 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 11 Jan 2018 23:56:33 +0000 Subject: [PATCH] Silencing an account does work again --- util/global_community_silence.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/global_community_silence.php b/util/global_community_silence.php index 26fc04d8dd..369c2c4602 100755 --- a/util/global_community_silence.php +++ b/util/global_community_silence.php @@ -59,7 +59,7 @@ if (in_array($net['network'], array(NETWORK_PHANTOM, NETWORK_MAIL))) { $nurl = normalise_link($net['url']); $contact = dba::selectFirst("contact", ["id"], ["nurl" => $nurl, "uid" => 0]); if (DBM::is_result($contact)) { - dba::update("contact", array("hidden" => true), array("id" => $r["id"])); + dba::update("contact", array("hidden" => true), array("id" => $contact["id"])); echo "NOTICE: The account should be silenced from the global community page\r\n"; } else { echo "NOTICE: Could not find any entry for this URL (".$nurl.")\r\n"; -- 2.39.5