X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FSearch.php;h=cb518c0b17b26fc4542baaf36da7474b3b3e5f8a;hb=9fbdcb5459e4acb158961427837612999253e046;hp=2c8349364c89fc459a012e58acb3f25a64feb63b;hpb=388b963714895b6aee59648084fe4a66a0964efc;p=friendica.git diff --git a/src/Model/Search.php b/src/Model/Search.php index 2c8349364c..cb518c0b17 100644 --- a/src/Model/Search.php +++ b/src/Model/Search.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Model; @@ -13,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; } }