Merge pull request #8446 from MrPetovan/bug/notices
Skip Contact::getDetailsByURL when url is empty in GContact::searchByName
This commit is contained in:
commit
d0a022c1f9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue