Skip to content

Commit

Permalink
Merge pull request #1055 from itflow-org/tag-delete-fix
Browse files Browse the repository at this point in the history
Fix deleting tags
  • Loading branch information
johnnyq authored Sep 20, 2024
2 parents 1390ca0 + 677d80d commit 5eb9f3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion post/tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 5eb9f3f

Please sign in to comment.