From 29de6bd44c213dc418b34c764a95af44a71afa1b Mon Sep 17 00:00:00 2001 From: Git Date: Fri, 27 Jun 2014 08:00:25 +0000 Subject: [PATCH] Empty commit --- classes/donations.class.php | 6 ++++++ 1 file changed, 6 insertions(+) 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; }