mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-05 07:20:58 +08:00
fix no tags error
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user