mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
fix no tags error
This commit is contained in:
+1
-1
@@ -223,7 +223,7 @@ if (!empty($_POST['custom_fields'])) {
|
|||||||
*
|
*
|
||||||
* @since v1.6
|
* @since v1.6
|
||||||
*/
|
*/
|
||||||
$tagIdArr = array_filter($_POST['tags']);
|
$tagIdArr = array_filter($_POST['tags'] ?? []);
|
||||||
if (!empty($tagIdArr)) {
|
if (!empty($tagIdArr)) {
|
||||||
insert_torrent_tags($id, $tagIdArr, true);
|
insert_torrent_tags($id, $tagIdArr, true);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -341,7 +341,7 @@ if (!empty($_POST['custom_fields'])) {
|
|||||||
*
|
*
|
||||||
* @since v1.6
|
* @since v1.6
|
||||||
*/
|
*/
|
||||||
$tagIdArr = array_filter($_POST['tags']);
|
$tagIdArr = array_filter($_POST['tags'] ?? []);
|
||||||
if (!empty($tagIdArr)) {
|
if (!empty($tagIdArr)) {
|
||||||
insert_torrent_tags($id, $tagIdArr);
|
insert_torrent_tags($id, $tagIdArr);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user