[FIX] Avoid empty Auto-Payout threshold value for accounts page
This commit is contained in:
parent
4e7eb890f4
commit
deb3b115d0
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user