diff --git a/sections/torrents/delete.php b/sections/torrents/delete.php index d3cee220..4d789783 100644 --- a/sections/torrents/delete.php +++ b/sections/torrents/delete.php @@ -169,7 +169,9 @@
- $DB->query("SELECT t.UserID + } + + $DB->query("SELECT t.UserID FROM reportsv2 AS r JOIN torrents AS t ON t.ID=r.TorrentID WHERE r.Status != 'Resolved' @@ -188,12 +190,10 @@ req.TimeFilled FROM requests AS req LEFT JOIN torrents AS t ON t.GroupID=req.TorrentID - LEFT JOIN reportsv2 AS rep ON rep.TorrentID=t.ID JOIN users_main AS um ON um.ID=req.FillerID - WHERE rep.Status != 'Resolved' AND req.TorrentID=$TorrentID"); $Requests = ($DB->record_count()); - if($Requests > 0) { + if($Requests > 0) { while(list($RequestID, $FillerID, $FillerName, $FilledTime) = $DB->next_record()) { ?>