This commit is contained in:
Václav Šmejkal 2024-05-25 17:17:09 +02:00
parent b9936781d5
commit c0019f1d6a
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -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);
$database -> query("UPDATE post SET archived=1 WHERE author=" . $id . " AND photo_id=\"" . $safe_post_id . "\"");