check array

This commit is contained in:
CHIEFSOFT\ameye
2024-10-15 17:48:46 -04:00
parent a992ecdf36
commit 21e27c54cc
+1 -1
View File
@@ -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);