From 0f67d82d05941fa8154dbe43702018a0745c43fe Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Fri, 21 Jul 2017 19:36:13 +0200 Subject: [PATCH] Update socgraph.php Two little style changes --- include/socgraph.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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"]); -- 2.39.5