Merge branch '1.9' into php8

This commit is contained in:
xiaomlove
2025-10-29 17:18:00 +07:00
8 changed files with 67 additions and 62 deletions
+3 -1
View File
@@ -6063,7 +6063,9 @@ function insert_torrent_tags($torrentId, $tagIdArr, $sync = false)
do_log("special tag: $tagId, and user no permission");
continue;
}
$values[] = sprintf("(%s, %s, '%s', '%s')", $torrentId, $tagId, $dateTimeStringNow, $dateTimeStringNow);
if (!isset($values[$tagId])) {
$values[$tagId] = sprintf("(%s, %s, '%s', '%s')", $torrentId, $tagId, $dateTimeStringNow, $dateTimeStringNow);
}
}
$insertTagsSql .= implode(', ', $values);
do_log("[INSERT_TAGS], torrent: $torrentId with tags: " . nexus_json_encode($tagIdArr));