1
1
Fork 0

Merge pull request #7288 from annando/fix-search

Fix searching for contacts
This commit is contained in:
Hypolite Petovan 2019-06-20 19:33:00 -04:00 committed by GitHub
commit b07490266c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,10 @@ class BaseSearchModule extends BaseModule
$search = substr($search, 1);
$type = Search::TYPE_PEOPLE;
$header = L10n::t('People Search - %s', $search);
$results = Search::getContactsFromProbe($search);
if (strrpos($search, '@') > 0) {
$results = Search::getContactsFromProbe($search);
}
}
if (strpos($search, '!') === 0) {