refactor: remove obsolete code

This commit is contained in:
grandeljay 2024-01-16 16:56:07 +01:00
parent 7f285ba3f4
commit 6b1d4cb725

View file

@ -10,11 +10,6 @@ namespace wishthis;
global $page, $database; global $page, $database;
if (!isset($page)) {
http_response_code(403);
die('Direct access to this location is not allowed.');
}
switch ($_SERVER['REQUEST_METHOD']) { switch ($_SERVER['REQUEST_METHOD']) {
case 'GET': case 'GET':
$getWish = isset($_GET['wish_id']); $getWish = isset($_GET['wish_id']);