fix no tags error

This commit is contained in:
xiaomlove
2022-03-10 19:31:59 +08:00
parent b8855299cd
commit 40e36b715a
2 changed files with 2 additions and 2 deletions

View File

@@ -223,7 +223,7 @@ if (!empty($_POST['custom_fields'])) {
*
* @since v1.6
*/
$tagIdArr = array_filter($_POST['tags']);
$tagIdArr = array_filter($_POST['tags'] ?? []);
if (!empty($tagIdArr)) {
insert_torrent_tags($id, $tagIdArr, true);
}