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

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