[FIX] PHP Notice if wallet down
This commit is contained in:
parent
6544bc5cba
commit
dbd26e8be1
@ -9,7 +9,7 @@ if (!$user->isAuthenticated() || !$user->isAdmin($_SESSION['USERDATA']['id'])) {
|
|||||||
|
|
||||||
if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
|
if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
|
||||||
$debug->append('No cached version available, fetching from backend', 3);
|
$debug->append('No cached version available, fetching from backend', 3);
|
||||||
if ($bitcoin->can_connect() === true){
|
if ($bitcoin->can_connect() === true) {
|
||||||
$dBalance = $bitcoin->getrealbalance();
|
$dBalance = $bitcoin->getrealbalance();
|
||||||
|
|
||||||
$dWalletAccounts = $bitcoin->listaccounts();
|
$dWalletAccounts = $bitcoin->listaccounts();
|
||||||
@ -28,6 +28,9 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
|
|||||||
$dNewmint = -1;
|
$dNewmint = -1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
$dWalletAccounts = array();
|
||||||
|
$dAddressCount = 0;
|
||||||
|
$dAccountAddresses = array();
|
||||||
$aGetInfo = array('errors' => 'Unable to connect');
|
$aGetInfo = array('errors' => 'Unable to connect');
|
||||||
$dBalance = 0;
|
$dBalance = 0;
|
||||||
$dNewmint = -1;
|
$dNewmint = -1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user