Skip to content

Commit dbba22c

Browse files
committed
Fix bug in admin dashboard
Fixes a bug causing the admin dashboard to throw an error, when the wallet has an account name which is an integer (e.g. "1"). This is caused by json_decode decoding the account address as an integer, which is passed to getaddressesbyaccount, throwing an error (as the daemon only accepts string values for account names).
1 parent bd8ae40 commit dbba22c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/include/pages/admin/wallet.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
$dAccountAddresses = array();
1919
foreach($dWalletAccounts as $key => $value)
2020
{
21-
$dAccountAddresses[$key] = $bitcoin->getaddressesbyaccount($key);
21+
$dAccountAddresses[$key] = $bitcoin->getaddressesbyaccount((string)$key);
2222
}
2323

2424
$aGetInfo = $bitcoin->getinfo();

0 commit comments

Comments
 (0)