Deny requests
diff --git a/request.php b/request.php
index 39fa91c..a26e445 100644
--- a/request.php
+++ b/request.php
@@ -15,14 +15,11 @@
if ($_GET['msg'] == 2) $query = "UPDATE users SET requested=".$_GET['msg']." WHERE quimata=".$_GET['id']; // request dead
if ($_GET['msg'] == 3) $query = "UPDATE users SET mort=1 WHERE id=".$_GET['id']; // confirm dead
if ($_GET['msg'] == 4) $query = "UPDATE users SET mort=1 WHERE quimata=".$_GET['id']; // confirm killed
+ if ($_GET['msg'] == 5) $query = "UPDATE users SET requested=0 WHERE id=".$_GET['id']; // deny request
// Fetch the information of the user
- if ($result = $conn->query($query)) {
- echo 'Success!';
- // $result->close();
- } else {
- die("Wrong query: " . $query);
- }
+ if ($result = $conn->query($query)) echo 'Success!';
+ else die("Wrong query: " . $query);
// Close connection
$conn->close();