From 166508ca47aaa85ef8d77b53f9552a15a3861dee Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 9 Nov 2024 05:22:51 -0500 Subject: [PATCH] ['result_list'] --- www-api/app/Controllers/WrenchWallet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www-api/app/Controllers/WrenchWallet.php b/www-api/app/Controllers/WrenchWallet.php index 4022d88c..28f7c204 100644 --- a/www-api/app/Controllers/WrenchWallet.php +++ b/www-api/app/Controllers/WrenchWallet.php @@ -253,7 +253,7 @@ class WrenchWallet extends BaseController $endpoint = "WALLETS-USERS-". str_replace('-','_', $in["uid"]); $out = $this->getCache($endpoint); - if (!is_array($out) || count($out)==0 ){ + if (!is_array($out) || !is_array($out['result_list']) || count($out['result_list'])==0 ){ $local_url = "http://".$this->micro_service_net1.":3037/getwallets"; $out = $this->APIcall('GET', $local_url, $in); if ( is_array($out['result_list']) && count($out['result_list']) > 0 ){ // dont cache empty