check array
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user