diff --git a/sections/schedule/index.php b/sections/schedule/index.php index f7af7e85..b66501a7 100644 --- a/sections/schedule/index.php +++ b/sections/schedule/index.php @@ -90,7 +90,7 @@ function next_hour() { FROM users_freeleeches AS uf JOIN torrents AS t ON uf.TorrentID = t.ID WHERE uf.Expired = FALSE AND uf.Time < '$sqltime' - INTERVAL 4 DAY"); -while (list($UserID,$InfoHash) = $DB->next_record()) { +while (list($UserID,$InfoHash) = $DB->next_record(MYSQLI_NUM, false)) { update_tracker('remove_token', array('info_hash' => rawurlencode($InfoHash), 'userid' => $UserID)); } $DB->query("UPDATE users_freeleeches SET Expired = True WHERE Time < '$sqltime' - INTERVAL 4 DAY"); diff --git a/sections/torrents/download.php b/sections/torrents/download.php index 3707d318..0e454cda 100644 --- a/sections/torrents/download.php +++ b/sections/torrents/download.php @@ -94,7 +94,7 @@ // Let the tracker know about this if (!update_tracker('add_token', array('info_hash' => rawurlencode($InfoHash), 'userid' => $UserID))) { - error("An error has occured while trying to register your token. This is most often caused by tracker problems. Please try again when the tracker is up. If the tracker is currently working, it may just be under heavy load, so please try again."); + error("Sorry! An error occurred while trying to register your token. Most often, this is due to the tracker being down or under heavy load. Please try again later."); } // We need to fetch and check this again here because of people