backup export path configurable + fix some warning

This commit is contained in:
xiaomlove
2025-05-13 02:27:58 +07:00
parent a3ad2cc2c4
commit 18449ff185
14 changed files with 33 additions and 18 deletions
+3
View File
@@ -19,6 +19,9 @@ class Torrent
*/
public function listLeechingSeedingStatus(int $uid, array $torrentIdArr)
{
if (empty($torrentIdArr)) {
return [];
}
$torrentIdStr = implode(',', $torrentIdArr);
//seeding or leeching, from peers
$whereStr = sprintf("userid = %s and torrent in (%s)", sqlesc($uid), $torrentIdStr);