From: Michael Vogel Date: Fri, 21 Jul 2017 17:36:13 +0000 (+0200) Subject: Update socgraph.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0f67d82d05941fa8154dbe43702018a0745c43fe;p=friendica.git Update socgraph.php Two little style changes --- diff --git a/include/socgraph.php b/include/socgraph.php index eccde26214..55e0e6fc3a 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -1159,11 +1159,11 @@ function poco_check_server($server_url, $network = "", $force = false) { } if (!$failure) { - // Test for Hubzilla, Redmatrix or Friendica + // Test for Hubzilla and Red $serverret = z_fetch_url($server_url."/siteinfo.json"); if ($serverret["success"]) { $data = json_decode($serverret["body"]); - if(isset($data->url)) { + if (isset($data->url)) { $platform = $data->platform; $version = $data->version; $network = NETWORK_DIASPORA; @@ -1181,8 +1181,8 @@ function poco_check_server($server_url, $network = "", $force = false) { $register_policy = REGISTER_CLOSED; break; } - } - else { + } else { + // Test for Hubzilla, Redmatrix or Friendica $serverret = z_fetch_url($server_url."/api/statusnet/config.json"); if ($serverret["success"]) { $data = json_decode($serverret["body"]);