From: Michael Date: Thu, 20 Jun 2019 21:56:18 +0000 (+0000) Subject: Fix searching for contacts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7c87e83dcfae34c75eb8070f225edab670b81efb;p=friendica.git Fix searching for contacts --- diff --git a/src/Module/BaseSearchModule.php b/src/Module/BaseSearchModule.php index 3393b34123..ed39f071ca 100644 --- a/src/Module/BaseSearchModule.php +++ b/src/Module/BaseSearchModule.php @@ -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) {