diff --git a/public/takeedit.php b/public/takeedit.php index ecdf81cc..2d428baa 100644 --- a/public/takeedit.php +++ b/public/takeedit.php @@ -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); } diff --git a/public/takeupload.php b/public/takeupload.php index ad92a17d..d7eaa030 100644 --- a/public/takeupload.php +++ b/public/takeupload.php @@ -341,7 +341,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); }