properly fetch account balance
This commit is contained in:
parent
19fa104b3b
commit
7209f570f4
@ -13,6 +13,8 @@ if ($user->isAuthenticated()) {
|
|||||||
if ($setting->getValue('disable_mp') == 1) {
|
if ($setting->getValue('disable_mp') == 1) {
|
||||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Manual payouts are disabled.', 'TYPE' => 'info');
|
$_SESSION['POPUP'][] = array('CONTENT' => 'Manual payouts are disabled.', 'TYPE' => 'info');
|
||||||
} else {
|
} else {
|
||||||
|
$aBalance = $transaction->getBalance($_SESSION['USERDATA']['id']);
|
||||||
|
$dBalance = $aBalance['confirmed'];
|
||||||
if ($dBalance > $config['txfee']) {
|
if ($dBalance > $config['txfee']) {
|
||||||
if (!$oPayout->isPayoutActive($_SESSION['USERDATA']['id'])) {
|
if (!$oPayout->isPayoutActive($_SESSION['USERDATA']['id'])) {
|
||||||
if ($iPayoutId = $oPayout->createPayout($_SESSION['USERDATA']['id'])) {
|
if ($iPayoutId = $oPayout->createPayout($_SESSION['USERDATA']['id'])) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user