]> git.mxchange.org Git - friendica.git/commitdiff
Fix searching for contacts
authorMichael <heluecht@pirati.ca>
Thu, 20 Jun 2019 21:56:18 +0000 (21:56 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 20 Jun 2019 21:56:18 +0000 (21:56 +0000)
src/Module/BaseSearchModule.php

index 3393b34123923fe05669a5004ca51093ae85f2b0..ed39f071ca61c92c898aa1a702ccd638f04cfbf2 100644 (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) {