From 49ffe92e424e0d80e92df20e77d7eba474f76d4d Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 7 Jun 2025 11:13:05 -0400 Subject: [PATCH] job list --- www-api/app/Controllers/WrenchJobs.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/www-api/app/Controllers/WrenchJobs.php b/www-api/app/Controllers/WrenchJobs.php index 3edfdde2..18e87431 100644 --- a/www-api/app/Controllers/WrenchJobs.php +++ b/www-api/app/Controllers/WrenchJobs.php @@ -99,13 +99,16 @@ class WrenchJobs extends BaseController } $filter_job_list =[]; - $wallet_country = $first_names = array_column($outW['result_list'], 'country');; - foreach ($out['result_list'] as $item) { - if ( in_array( $item['job_country'], $wallet_country) ){ - log_message('critical', "***** ***** WrenchJobs::ITEM ". serialize($item)); - $filter_job_list[] = $item; + $wallet_country = $first_names = array_column($outW['result_list'], 'country'); + if (is_array($out['result_list']) && count($out['result_list']) > 0 ){ + foreach ($out['result_list'] as $item) { + if (in_array($item['job_country'], $wallet_country)) { + log_message('critical', "***** ***** WrenchJobs::ITEM " . serialize($item)); + $filter_job_list[] = $item; + } } } + log_message('critical', "***** ***** WrenchJobs::JOB AFTER FILTER Ret ". serialize($filter_job_list)); $out['result_list'] = $filter_job_list;