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);