From fb6bf88b6cc29cab2c134b2c90d184f05c9cf09a Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 6 Sep 2024 11:57:38 -0400 Subject: [PATCH] $int_list --- www-api/app/Controllers/WrenchJobs.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www-api/app/Controllers/WrenchJobs.php b/www-api/app/Controllers/WrenchJobs.php index 5ff0f1da..bca7b194 100644 --- a/www-api/app/Controllers/WrenchJobs.php +++ b/www-api/app/Controllers/WrenchJobs.php @@ -70,7 +70,8 @@ class WrenchJobs extends BaseController } $endpoint = "WRENCH_JOB_INTEREST_COUNT"; - $out["interest_list"] = $this->getCache($endpoint); + $int_list = $this->getCache($endpoint)["result_list"]; + $out["interest_list"] = ( isset($int_list) && is_array($int_list) ) ? $int_list : []; log_message('critical', "***** ***** WrenchJobs::getJobsData Ret "); return $this->respond( $this->summaryReturnData($in,$out), 200);