[UPDATE] cleanup

This commit is contained in:
iAmShorty 2014-02-13 09:30:07 +01:00
parent 0e792e34f3
commit 58085eb7f5

View File

@ -79,12 +79,8 @@ if (@$_SESSION['USERDATA']['is_admin'] && $user->isAdmin(@$_SESSION['USERDATA'][
// check if there is more than one account set on wallet
$accounts = $bitcoin->listaccounts();
if (count($accounts) > 1) {
foreach ($accounts as $account => $balance) {
if ($account == "" && $balance <= 0) {
$error[] = "There are " . count($accounts) . " Accounts set in local Wallet and Default Account has no liquid funds to pay your miners!";
}
}
if (count($accounts) > 1 && $accounts[''] <= 0) {
$error[] = "There are " . count($accounts) . " Accounts set in local Wallet and Default Account has no liquid funds to pay your miners!";
}
}
} catch (Exception $e) {