From 6aa5cca55b46877dc9a17917811173145ad94af1 Mon Sep 17 00:00:00 2001 From: sanjeev Date: Wed, 1 Dec 2021 18:29:45 +0530 Subject: [PATCH] shorten url :ps --- api/application/controllers/PD_Controller.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/application/controllers/PD_Controller.php b/api/application/controllers/PD_Controller.php index e1b67789..e9452025 100644 --- a/api/application/controllers/PD_Controller.php +++ b/api/application/controllers/PD_Controller.php @@ -11318,9 +11318,11 @@ public function getCompaniesListsFromGeneralFormRawJSON_post() $res = $client->get($concat_url,['headers'=>['Content-Type' => 'application/json']]); if($res && $res->getStatusCode() == 200) { - $result_data = json_decode($response->getBody()->getContents()); + $result_data = json_decode($res->getBody()->getContents()); + }else{ + $result_data = array(); } -print_r($result_data);die(); +// print_r($result_data);die(); if(!empty($result_data) && $result_data['datastatus'] == 200) { $data['dataStatus'] = true;