properly fetch account balance

This commit is contained in:
Sebastian Grewe 2013-07-23 14:16:20 +02:00
parent 19fa104b3b
commit 7209f570f4

View File

@ -13,6 +13,8 @@ if ($user->isAuthenticated()) {
if ($setting->getValue('disable_mp') == 1) {
$_SESSION['POPUP'][] = array('CONTENT' => 'Manual payouts are disabled.', 'TYPE' => 'info');
} else {
$aBalance = $transaction->getBalance($_SESSION['USERDATA']['id']);
$dBalance = $aBalance['confirmed'];
if ($dBalance > $config['txfee']) {
if (!$oPayout->isPayoutActive($_SESSION['USERDATA']['id'])) {
if ($iPayoutId = $oPayout->createPayout($_SESSION['USERDATA']['id'])) {