From 24efe49bc2b545e3a3e46d7d6f2bd1166163e52b Mon Sep 17 00:00:00 2001 From: cflip <36554078+cflip@users.noreply.github.com> Date: Sat, 5 Jun 2021 11:18:10 -0600 Subject: Move object related functions into their classes. Some of the pages are still broken from this commit, but I plan to either rewrite or ignore them. --- viewcategory.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'viewcategory.php') diff --git a/viewcategory.php b/viewcategory.php index 852148b..e68bab2 100644 --- a/viewcategory.php +++ b/viewcategory.php @@ -1,22 +1,19 @@ has_value()) { http_response_code(404); include('includes/templates/404.php'); die(); -} else { - $result = $current->get_from_database($_GET['id']); - if (!$result) { - http_response_code(404); - include('includes/templates/404.php'); - die(); - } } ?> -- cgit v1.2.3