fix can not remove all tags

This commit is contained in:
xiaomlove
2022-03-18 21:50:42 +08:00
parent 3ad8fabe7b
commit 805dc002f1
2 changed files with 4 additions and 3 deletions
+1 -3
View File
@@ -224,9 +224,7 @@ if (!empty($_POST['custom_fields'])) {
* @since v1.6
*/
$tagIdArr = array_filter($_POST['tags'] ?? []);
if (!empty($tagIdArr)) {
insert_torrent_tags($id, $tagIdArr, true);
}
insert_torrent_tags($id, $tagIdArr, true);
if($CURUSER["id"] == $row["owner"])
{