mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-21 02:20:54 +08:00
Merge branch '1.9' into php8
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user