From: Hypolite Petovan Date: Mon, 23 Mar 2020 02:46:22 +0000 (-0400) Subject: Skip Contact::getDetailsByURL when url is empty in GContact::searchByName X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1187742c14584e5cd417f97ea3057577655bbf25;p=friendica.git Skip Contact::getDetailsByURL when url is empty in GContact::searchByName - Address https://github.com/friendica/friendica/issues/8000#issuecomment-602169147 --- diff --git a/src/Model/GContact.php b/src/Model/GContact.php index 09eeda4a2a..bf9aa2cf20 100644 --- a/src/Model/GContact.php +++ b/src/Model/GContact.php @@ -107,7 +107,7 @@ class GContact // Ignore results that look strange. // For historic reasons the gcontact table does contain some garbage. - if (!empty($urlparts['query']) || !empty($urlparts['fragment'])) { + if (empty($result['nurl']) || !empty($urlparts['query']) || !empty($urlparts['fragment'])) { continue; }