Merge pull request #7288 from annando/fix-search
Fix searching for contacts
This commit is contained in:
commit
b07490266c
|
@ -50,8 +50,11 @@ class BaseSearchModule extends BaseModule
|
||||||
$search = substr($search, 1);
|
$search = substr($search, 1);
|
||||||
$type = Search::TYPE_PEOPLE;
|
$type = Search::TYPE_PEOPLE;
|
||||||
$header = L10n::t('People Search - %s', $search);
|
$header = L10n::t('People Search - %s', $search);
|
||||||
|
|
||||||
|
if (strrpos($search, '@') > 0) {
|
||||||
$results = Search::getContactsFromProbe($search);
|
$results = Search::getContactsFromProbe($search);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (strpos($search, '!') === 0) {
|
if (strpos($search, '!') === 0) {
|
||||||
$search = substr($search, 1);
|
$search = substr($search, 1);
|
||||||
|
|
Loading…
Reference in a new issue