]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/RandomProfile.php
Use centralized function to fetch query results
[friendica.git] / src / Module / RandomProfile.php
index 163fec60fbb6da1f8b06d5be5ea45d58f3e99b38..17c8fab7a4909ecfff0c7f86a4e7b8da9d466f0f 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
  *
@@ -30,7 +30,7 @@ use Friendica\Model\Contact;
  */
 class RandomProfile extends BaseModule
 {
-       public static function content(array $parameters = [])
+       protected function content(array $request = []): string
        {
                $a = DI::app();
 
@@ -42,5 +42,7 @@ class RandomProfile extends BaseModule
                }
 
                DI::baseUrl()->redirect('profile');
+
+               return '';
        }
 }