From 026049235c22ad4d33b1c3c218568a187a9ec050 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Tue, 27 Feb 2024 09:04:46 -0500 Subject: [PATCH] Result --- www-api/app/Controllers/WrenchResources.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/www-api/app/Controllers/WrenchResources.php b/www-api/app/Controllers/WrenchResources.php index 97426ddd..235ae031 100644 --- a/www-api/app/Controllers/WrenchResources.php +++ b/www-api/app/Controllers/WrenchResources.php @@ -144,13 +144,11 @@ class WrenchResources extends BaseController $in["loc"] = $_SERVER["REMOTE_ADDR"]; log_message('critical', "WrenchResources Path GATE 005"); // $res1['tab_categories'] = json_encode( $this->getFamilyResourceCategory($in)); - $res1['tab_categories'] = $this->getFamilyResourceCategory($in); + $res1 = $this->getFamilyResourceCategory($in); log_message('critical', "WrenchResources Path GATE 010 " . serialize($in)); log_message('critical', "WrenchResources Path GATE 010 " . serialize($res1['tab_categories'])); log_message('critical', "WrenchResources Path GATE 11"); - $res1['marketdata'] = $this->MarketData(); - $res1['productdata'] = $this->ProductData(); - $res1['collectiondata'] = $this->CollectionData(); + return $this->response->setJson($res1); } private function getFamilyResourceCategory($in){