!is_array($out)

This commit is contained in:
CHIEFSOFT\ameye
2024-11-09 05:08:29 -05:00
parent a839a3af28
commit 47f659f822
+1 -1
View File
@@ -220,7 +220,7 @@ class WrenchWallet extends BaseController
// if ( $in["action"] !='' ){
$local_url = "http://".$this->micro_service_net1.":3037/getkidswallets";
$out = $this->APIcall('GET', $local_url, $in);
if (count($out['result_list']) > 0 ){ // dont cache empty
if( is_array($out['result_list']) && count($out['result_list']) > 0 ){ // dont cache empty
$this->saveCache($endpoint,$out,60);
}
}