Get address from returned items list in Address_List

This commit is contained in:
Paul Kirby 2020-01-27 16:49:03 -06:00
parent 16856008fe
commit 4752915e4d

View file

@ -148,9 +148,9 @@ class LBRY_Admin
*/
public function wallet_callback()
{
// Get first available address from Daemon
// Get first available account address from Daemon
$address = LBRY()->daemon->address_list()->items;
$address = is_array($address) && !empty($address) ? $address[0] : '';
$address = is_array($address) && !empty($address) ? $address[0]->address : '';
printf(
'<input type="text" id="%1$s" name="%2$s[%1$s]" value="%3$s" readonly />',
LBRY_WALLET,