]> git.mxchange.org Git - friendica.git/commitdiff
Update socgraph.php
authorMichael Vogel <icarus@dabo.de>
Fri, 21 Jul 2017 17:36:13 +0000 (19:36 +0200)
committerGitHub <noreply@github.com>
Fri, 21 Jul 2017 17:36:13 +0000 (19:36 +0200)
Two little style changes

include/socgraph.php

index eccde262147de6e19394d9180bbd4b46cac47062..55e0e6fc3a98a560c32573c442707e7c39de878a 100644 (file)
@@ -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"]);