Skip Contact::getDetailsByURL when url is empty in GContact::searchByName

- Address https://github.com/friendica/friendica/issues/8000#issuecomment-602169147
This commit is contained in:
Hypolite Petovan 2020-03-22 22:46:22 -04:00
parent 3b3085369c
commit 1187742c14

View 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;
}