From c0019f1d6a181675ee4bc2a8c587447c93c1aad2 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sat, 25 May 2024 17:17:09 +0200 Subject: [PATCH] typo fix --- res/forum/api/archive_post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/forum/api/archive_post.php b/res/forum/api/archive_post.php index 2642242..e2eef9b 100644 --- a/res/forum/api/archive_post.php +++ b/res/forum/api/archive_post.php @@ -23,4 +23,4 @@ $safe_post_id = mysqli_real_escape_string($database, $_GET["post_id"]); $id = (($database -> query("SELECT id FROM user WHERE username=\"" . $safe_username . "\"")) -> fetch_assoc())["id"]; -$database -> query("UPDATE post SET archived=1 WHERE author=" . $id . " AND photo_id=" . $safe_post_id); \ No newline at end of file +$database -> query("UPDATE post SET archived=1 WHERE author=" . $id . " AND photo_id=\"" . $safe_post_id . "\""); \ No newline at end of file