From 4e4d30376e65be0e164ee081f70c3c1fb85af880 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sat, 27 Jan 2024 20:35:41 +0700 Subject: [PATCH] Update functions_torrent.php --- library/includes/functions_torrent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/includes/functions_torrent.php b/library/includes/functions_torrent.php index 181dab1c..16cee3b2 100644 --- a/library/includes/functions_torrent.php +++ b/library/includes/functions_torrent.php @@ -324,7 +324,7 @@ function tracker_register ($attach_id, $mode = '', $tor_status = TOR_NOT_APPROVE foreach ($info['files'] as $fn => $f) { // Exclude padding files [Only for hybrid torrents] - if ((isset($f['attr']) ? $f['attr'] : null) !== 'p') + if (!isset($f['attr']) || $f['attr'] !== 'p') { if (isset($f['length']) && is_numeric($f['length'])) {