]> git.mxchange.org Git - friendica.git/commitdiff
Skip Contact::getDetailsByURL when url is empty in GContact::searchByName
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 23 Mar 2020 02:46:22 +0000 (22:46 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 23 Mar 2020 02:46:22 +0000 (22:46 -0400)
- Address https://github.com/friendica/friendica/issues/8000#issuecomment-602169147

src/Model/GContact.php

index 09eeda4a2ad22a3d3e03cf9a704dc4b08300be96..bf9aa2cf20950287c9b703a95dfde7cabb6dfca4 100644 (file)
@@ -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;
                        }