diff --git a/sections/requests/takefill.php b/sections/requests/takefill.php index a1d4ad5f..ee09ffce 100644 --- a/sections/requests/takefill.php +++ b/sections/requests/takefill.php @@ -76,8 +76,9 @@ } -$DB->query("SELECT - Title, + +$DB->query("SELECT + Title, UserID, TorrentID, CategoryID, @@ -86,11 +87,11 @@ BitrateList, FormatList, MediaList, - LogCue, - TimeStampDiff(MINUTE, LastVote, NOW()) - FROM requests + LogCue + FROM requests WHERE ID = ".$RequestID); -list($Title, $RequesterID, $OldTorrentID, $RequestCategoryID, $RequestReleaseType, $RequestCatalogueNumber, $BitrateList, $FormatList, $MediaList, $LogCue, $VoteTime) = $DB->next_record(); +list($Title, $RequesterID, $OldTorrentID, $RequestCategoryID, $RequestReleaseType, $RequestCatalogueNumber, $BitrateList, $FormatList, $MediaList, $LogCue) = $DB->next_record(); + if(!empty($OldTorrentID)) { $Err = "This request has already been filled";