]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/BaseSearch.php
Use rawContent for Special Options to avoid a protected options() method
[friendica.git] / src / Module / BaseSearch.php
index 5863a94050cdfc88288f552297510d7562216d2f..3abc92318262d8754d8655b36af61dac01e8208e 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -48,7 +48,6 @@ class BaseSearch extends BaseModule
         */
        public static function performContactSearch($search, $prefix = '')
        {
-               $a      = DI::app();
                $config = DI::config();
 
                $type = Search::TYPE_ALL;
@@ -118,7 +117,6 @@ class BaseSearch extends BaseModule
                        return '';
                }
 
-               $id      = 0;
                $entries = [];
                foreach ($results->getResults() as $result) {
 
@@ -126,7 +124,7 @@ class BaseSearch extends BaseModule
                        if ($result instanceof ContactResult) {
                                $contact = Model\Contact::getByURLForUser($result->getUrl(), local_user());
                                if (!empty($contact)) {
-                                       $entries[] = Contact::getContactTemplateVars($contact, ++$id);
+                                       $entries[] = Contact::getContactTemplateVars($contact);
                                }
                        }
                }