Merge pull request #8446 from MrPetovan/bug/notices

Skip Contact::getDetailsByURL when url is empty in GContact::searchByName
This commit is contained in:
Michael Vogel 2020-03-23 06:04:22 +01:00 committed by GitHub
commit d0a022c1f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,7 +107,7 @@ class GContact
// Ignore results that look strange. // Ignore results that look strange.
// For historic reasons the gcontact table does contain some garbage. // 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; continue;
} }