From deb3b115d0320bb3eb0cc87b94fbe706d0b5f60d Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Wed, 15 Jul 2015 14:44:26 +0200 Subject: [PATCH] [FIX] Avoid empty Auto-Payout threshold value for accounts page --- include/classes/user.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/classes/user.class.php b/include/classes/user.class.php index 2c8a4d29..4aa25f19 100644 --- a/include/classes/user.class.php +++ b/include/classes/user.class.php @@ -189,7 +189,7 @@ class User extends Base { return $result->fetch_all(MYSQLI_ASSOC); } } - + /** * Check user login * @param username string Username @@ -718,7 +718,8 @@ class User extends Base { if ($this->checkStmt($stmt) && $stmt->bind_param('i', $userID) && $stmt->execute() && $result = $stmt->get_result()) { $aData = $result->fetch_assoc(); $aData['coin_address'] = $this->coin_address->getCoinAddress($userID); - $aData['ap_threshold'] = $this->coin_address->getAPThreshold($userID); + if (! $aData['ap_threshold'] = $this->coin_address->getAPThreshold($userID)) + $aData['ap_threshold'] = 0; $stmt->close(); return $aData; }