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