From 6b1d4cb7259071f9df7cd938abbb16f3bbac497e Mon Sep 17 00:00:00 2001 From: grandeljay Date: Tue, 16 Jan 2024 16:56:07 +0100 Subject: [PATCH] refactor: remove obsolete code --- src/api/wishes.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/api/wishes.php b/src/api/wishes.php index ed08d87d..220a3a18 100644 --- a/src/api/wishes.php +++ b/src/api/wishes.php @@ -10,11 +10,6 @@ namespace wishthis; global $page, $database; -if (!isset($page)) { - http_response_code(403); - die('Direct access to this location is not allowed.'); -} - switch ($_SERVER['REQUEST_METHOD']) { case 'GET': $getWish = isset($_GET['wish_id']);