From: Hypolite Petovan <hypolite@mrpetovan.com>
Date: Fri, 8 Feb 2019 14:23:22 +0000 (-0500)
Subject: Add missing non-empty data condition to Protocol\PortableContact
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1eb607b351bf5a63711745adc6e2e74f500cc1bb;p=friendica.git

Add missing non-empty data condition to Protocol\PortableContact
---

diff --git a/src/Protocol/PortableContact.php b/src/Protocol/PortableContact.php
index 5b5cd6fb1a..7900ff540b 100644
--- a/src/Protocol/PortableContact.php
+++ b/src/Protocol/PortableContact.php
@@ -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);
 				}
 			}