]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/ActivityPub/Featured.php
spelling: chosen
[friendica.git] / src / Module / ActivityPub / Featured.php
index a4b8c3fef10e48791dce63838e49fc997d13ea2c..8e97097182037592759a047a6b722a4b041e8fac 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -42,7 +42,7 @@ class Featured extends BaseModule
                        throw new \Friendica\Network\HTTPException\NotFoundException();
                }
 
-               $page = $request['page'] ?? null;
+               $page = !empty($request['page']) ? (int)$request['page'] : null;
 
                $featured = ActivityPub\Transmitter::getFeatured($owner, $page);