]> git.mxchange.org Git - friendica.git/blobdiff - mod/match.php
Merge pull request #10228 from MrPetovan/bug/warnings
[friendica.git] / mod / match.php
index 6a2e350bcc2a07f5615f464aa0dc0a8f991bf6ab..29d4e086a6b226a4e0139974ba0d91acc7fcfb16 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -88,13 +88,13 @@ function match_content(App $a)
                        $profile = $msearch->results[$i];
 
                        // Already known contact
-                       if (!$profile || Contact::getIdForURL($profile->url, local_user(), false)) {
+                       if (!$profile || Contact::getIdForURL($profile->url, local_user())) {
                                continue;
                        }
 
                        $contact = Contact::getByURLForUser($profile->url, local_user());
                        if (!empty($contact)) {
-                               $entries[] = ModuleContact::getContactTemplateVars($contact, $i);
+                               $entries[] = ModuleContact::getContactTemplateVars($contact);
                        }
                }