[FIX] Avoid empty Auto-Payout threshold value for accounts page

This commit is contained in:
Sebastian Grewe 2015-07-15 14:44:26 +02:00
parent 4e7eb890f4
commit deb3b115d0

View File

@ -718,7 +718,8 @@ class User extends Base {
if ($this->checkStmt($stmt) && $stmt->bind_param('i', $userID) && $stmt->execute() && $result = $stmt->get_result()) { if ($this->checkStmt($stmt) && $stmt->bind_param('i', $userID) && $stmt->execute() && $result = $stmt->get_result()) {
$aData = $result->fetch_assoc(); $aData = $result->fetch_assoc();
$aData['coin_address'] = $this->coin_address->getCoinAddress($userID); $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(); $stmt->close();
return $aData; return $aData;
} }