From dbba22ca67b7b0c03b74d2227b3a6cbd86b67765 Mon Sep 17 00:00:00 2001 From: LucasJones Date: Fri, 28 Mar 2014 19:02:06 +0000 Subject: [PATCH] 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). --- public/include/pages/admin/wallet.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/include/pages/admin/wallet.inc.php b/public/include/pages/admin/wallet.inc.php index 54f054e6..fc423bb6 100644 --- a/public/include/pages/admin/wallet.inc.php +++ b/public/include/pages/admin/wallet.inc.php @@ -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();