]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Search/Index.php
Merge pull request #8900 from tobiasd/20200718-serverblocklistcsv
[friendica.git] / src / Module / Search / Index.php
index 34085e339e0a4f52fff5c23f384d1c8c1b49a155..bf3ae2585b19de398b99ef90f2f9163aa8c35b4c 100644 (file)
@@ -176,7 +176,7 @@ class Index extends BaseSearch
                }
 
                if (!DBA::isResult($r)) {
-                       info(DI::l10n()->t('No results.'));
+                       notice(DI::l10n()->t('No results.'));
                        return $o;
                }
 
@@ -239,7 +239,7 @@ class Index extends BaseSearch
                        if ($isAddr) {
                                $contact = Contact::selectFirst(['id'], ['addr' => $search, 'uid' => 0]);
                        } else {
-                               $contact = array_merge(['id' => 0], Contact::getByURL($search, null, ['id']));
+                               $contact = Contact::getByURL($search, null, ['id']) ?: ['id' => 0];
                        }
 
                        if (DBA::isResult($contact)) {