Merge pull request #8446 from MrPetovan/bug/notices

Skip Contact::getDetailsByURL when url is empty in GContact::searchByName
pull/8448/head
Michael Vogel 2020-03-23 06:04:22 +01:00 zatwierdzone przez GitHub
commit d0a022c1f9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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