]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/BaseSearchModule.php
Remove setting obsolete App->data['user'] in Module\Profile\Contacts
[friendica.git] / 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) {