From 47f659f8220ca6dccd8ef7c759cbbbdc95e21c60 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 9 Nov 2024 05:08:29 -0500 Subject: [PATCH] !is_array($out) --- www-api/app/Controllers/WrenchWallet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www-api/app/Controllers/WrenchWallet.php b/www-api/app/Controllers/WrenchWallet.php index 6a7bc6ef..3a8ba21b 100644 --- a/www-api/app/Controllers/WrenchWallet.php +++ b/www-api/app/Controllers/WrenchWallet.php @@ -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); } }