diff --git a/classes/donations.class.php b/classes/donations.class.php index 54a95b0b..d43d9e89 100644 --- a/classes/donations.class.php +++ b/classes/donations.class.php @@ -322,6 +322,12 @@ public static function get_donor_info($UserID) { // 2 hours less than 32 days to account for schedule run times if (G::$DB->has_results()) { list($Rank, $SpecialRank, $TotalRank, $DonationTime, $ExpireTime) = G::$DB->next_record(MYSQLI_NUM, false); + if ($DonationTime === null) { + $DonationTime = 0; + } + if ($ExpireTime === null) { + $ExpireTime = 0; + } } else { $Rank = $SpecialRank = $TotalRank = $DonationTime = $ExpireTime = 0; }