]> git.mxchange.org Git - friendica.git/commitdiff
Add missing non-empty data condition to Protocol\PortableContact
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 8 Feb 2019 14:23:22 +0000 (09:23 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 8 Feb 2019 14:24:04 +0000 (09:24 -0500)
src/Protocol/PortableContact.php

index 5b5cd6fb1a8a4ec644671de2ac4ce35e2764da11..7900ff540bfda7672d76416a6acba139c6b8d676 100644 (file)
@@ -1698,8 +1698,8 @@ class PortableContact
                                        }
                                }
 
-                               if (!$success && (Config::get('system', 'poco_discovery') > 2)) {
-                                       Logger::log("Fetch contacts from users of the server " . $server["nurl"], Logger::DEBUG);
+                               if (!$success && !empty($data) && Config::get('system', 'poco_discovery') >= self::USERS_GCONTACTS_FALLBACK) {
+                                       Logger::info("Fetch contacts from users of the server " . $server["nurl"]);
                                        self::discoverServerUsers($data, $server);
                                }
                        }