Fix searching for contacts

This commit is contained in:
Michael 2019-06-20 21:56:18 +00:00
parent f0849b0a93
commit 7c87e83dcf
1 changed files with 4 additions and 1 deletions

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) {