diff --git a/app/Controllers/TrendingController.php b/app/Controllers/TrendingController.php index f9c77cc..eb1d99e 100644 --- a/app/Controllers/TrendingController.php +++ b/app/Controllers/TrendingController.php @@ -8,7 +8,6 @@ use App\Helpers\RSS; class TrendingController { static public function get() { - $cursor = Misc::getTtwid(); $api = Misc::api(); // Ttwid if normal, cursor if legacy diff --git a/app/Helpers/Misc.php b/app/Helpers/Misc.php index 50042f6..608517b 100644 --- a/app/Helpers/Misc.php +++ b/app/Helpers/Misc.php @@ -10,7 +10,7 @@ class Misc { } static public function getTtwid(): string { - return $_GET['cursor'] ?? ''; + return isset($_GET['cursor']) ? $_GET['cursor'] : ''; } static public function url(string $endpoint = '') {