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).
This commit is contained in:
LucasJones 2014-03-28 19:02:06 +00:00
parent bd8ae40c20
commit dbba22ca67

View File

@ -18,7 +18,7 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
$dAccountAddresses = array();
foreach($dWalletAccounts as $key => $value)
{
$dAccountAddresses[$key] = $bitcoin->getaddressesbyaccount($key);
$dAccountAddresses[$key] = $bitcoin->getaddressesbyaccount((string)$key);
}
$aGetInfo = $bitcoin->getinfo();