]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Search.php
Changes:
[friendica.git] / src / Model / Search.php
index 9e00bbe30874751bd8ae707d136093aef8d18350..cb518c0b17b26fc4542baaf36da7474b3b3e5f8a 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
  *
@@ -32,19 +32,18 @@ class Search
         * Returns the list of user defined tags (e.g. #Friendica)
         *
         * @return array
-        *
         * @throws \Exception
         */
-       public static function getUserTags()
+       public static function getUserTags(): array
        {
                $termsStmt = DBA::p("SELECT DISTINCT(`term`) FROM `search`");
 
                $tags = [];
 
                while ($term = DBA::fetch($termsStmt)) {
-                       $tags[] = trim($term['term'], '#');
+                       $tags[] = trim(mb_strtolower($term['term']), '#');
                }
-
+               DBA::close($termsStmt);
                return $tags;
        }
 }