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);