diff --git a/www-api/app/Controllers/WrenchJobs.php b/www-api/app/Controllers/WrenchJobs.php index aba03422..509cbfbf 100644 --- a/www-api/app/Controllers/WrenchJobs.php +++ b/www-api/app/Controllers/WrenchJobs.php @@ -87,10 +87,12 @@ class WrenchJobs extends BaseController $endpointW = "USER_WALLET_COUNTRY-". $in["uid"]; $outW = $this->getCache($endpointW); // I need your wallet country here - if ( is_array($outW) && is_array($outW["result_list"]) && count($outW["result_list"]) > 0){ + if ( !is_array($outW["result_list"])){ $local_urlW = "http://".$this->micro_service_net1.":3033/walletcountry"; $outW = $this->APIcall('GET', $local_urlW, $in); - $this->saveCache($endpointW,$outW,2880); + if ( is_array($outW["result_list"]) && count($outW["result_list"]) > 0){ + $this->saveCache($endpointW,$outW,2880); + } } // Fileter result_list to wallet country