-
- if (strrpos($search, '@') > 0) {
- $results = Search::getContactsFromProbe(Network::convertToIdn($search));
- }
- }
-
- if (strpos($search, '!') === 0) {
- $search = substr($search, 1);
- $type = Search::TYPE_FORUM;
- $header = DI::l10n()->t('Forum Search - %s', $search);
+ } elseif (strpos($search, '!') === 0) {
+ $search = trim(substr($search, 1));
+ $type = Search::TYPE_GROUP;
+ $header = DI::l10n()->t('Group Search - %s', $search);