]> git.mxchange.org Git - friendica.git/commitdiff
Changed server detection.
authorMichael <heluecht@pirati.ca>
Fri, 10 Feb 2017 19:23:46 +0000 (19:23 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 10 Feb 2017 19:23:46 +0000 (19:23 +0000)
include/socgraph.php

index 19b94205ada4b01554f4e224e64ed55549fd6797..689a39614a310a1d46e377f9fefbd938f51b10e9 100644 (file)
@@ -765,7 +765,7 @@ function poco_check_server($server_url, $network = "", $force = false) {
 
        if (!$serverret["success"] OR ($serverret["body"] == "") OR (sizeof($xmlobj) == 0) OR !is_object($xmlobj)) {
                // Workaround for bad configured servers (known nginx problem)
-               if ($serverret["debug"]["http_code"] != "403") {
+               if (!in_array($serverret["debug"]["http_code"], array("403", "404"))) {
                        $last_failure = datetime_convert();
                        $failure = true;
                }