]> git.mxchange.org Git - friendica.git/commitdiff
Only store a new gserver entry if it is a valid one
authorMichael <heluecht@pirati.ca>
Sat, 4 Mar 2017 14:32:40 +0000 (14:32 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 4 Mar 2017 14:32:40 +0000 (14:32 +0000)
include/socgraph.php

index 21e27e52b70de3dbce26ccf86a7d3127ae68a65d..f35459d79bf701ffc7f541bad236dce9fe57cb3f 100644 (file)
@@ -1157,7 +1157,7 @@ function poco_check_server($server_url, $network = "", $force = false) {
                        dbesc($last_failure),
                        dbesc(normalise_link($server_url))
                );
-       else
+       elseif (!$failure)
                q("INSERT INTO `gserver` (`url`, `nurl`, `version`, `site_name`, `info`, `register_policy`, `poco`, `noscrape`, `network`, `platform`, `created`, `last_contact`, `last_failure`)
                                        VALUES ('%s', '%s', '%s', '%s', '%s', %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s')",
                                dbesc($server_url),