From 21e27c54ccf4840a580edb7583dc1145eedf20d7 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Tue, 15 Oct 2024 17:48:46 -0400 Subject: [PATCH] check array --- 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 248430e8..c038460d 100644 --- a/www-api/app/Controllers/WrenchWallet.php +++ b/www-api/app/Controllers/WrenchWallet.php @@ -249,7 +249,7 @@ class WrenchWallet extends BaseController $endpoint = "USERS_WALLETS-". $in["uid"]; $out = $this->getCache($endpoint); - if ( count($out)==0 ){ + if (!is_array($out) || count($out)==0 ){ $local_url = "http://".$this->micro_service_net1.":3037/getwallets"; $out = $this->APIcall('GET', $local_url, $in); $this->saveCache($endpoint,$out,1500);