X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=util%2Fglobal_community_silence.php;h=2eb76a47f4032d2006e52ee92eed7f826b31eab6;hb=c4d3ab68785122ff070c65a444aaa0833b746b2b;hp=369c2c4602c708422d70cc197a1dea67801d2c1d;hpb=34b80227e88f80bf22b2acbd09bd9cd7e78e086c;p=friendica.git diff --git a/util/global_community_silence.php b/util/global_community_silence.php index 369c2c4602..2eb76a47f4 100755 --- a/util/global_community_silence.php +++ b/util/global_community_silence.php @@ -51,7 +51,7 @@ unset($db_host, $db_user, $db_pass, $db_data); * 3. set the flag hidden=1 for the contact entry with the found ID **/ $net = Probe::uri($argv[1]); -if (in_array($net['network'], array(NETWORK_PHANTOM, NETWORK_MAIL))) { +if (in_array($net['network'], [NETWORK_PHANTOM, NETWORK_MAIL])) { echo "This account seems not to exist."; echo "\r\n"; exit(1); @@ -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" => $contact["id"])); + dba::update("contact", ["hidden" => true], ["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";