From 677d80d770436d0d0a3020596dc0822eb15c777e Mon Sep 17 00:00:00 2001 From: wrongecho Date: Fri, 20 Sep 2024 10:44:22 +0100 Subject: [PATCH] Fix deleting tags --- post/tag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post/tag.php b/post/tag.php index 91d6245d0..1e37ce446 100644 --- a/post/tag.php +++ b/post/tag.php @@ -42,7 +42,7 @@ $tag_id = intval($_GET['delete_tag']); mysqli_query($mysqli,"DELETE FROM tags WHERE tag_id = $tag_id"); - mysqli_query($mysqli,"DELETE FROM client_tags WHERE client_tag_tag_id = $tag_id"); + mysqli_query($mysqli,"DELETE FROM client_tags WHERE tag_id = $tag_id"); //Logging mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Tag', log_action = 'Delete', log_description = '$tag_id', log_ip = '$session_ip', log_user_agent = '$session_user_agent', log_user_id = $session_user_id");