Browse Source

clientareafunctions

andre 3 years ago
parent
commit
a8a4447864
1 changed files with 0 additions and 13 deletions
  1. 0 13
      api/cwp7/Admin.php

+ 0 - 13
api/cwp7/Admin.php

@@ -398,19 +398,6 @@ class cwp7_Admin {
         curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
         curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
         curl_setopt($ch, CURLOPT_POST, 1);
         curl_setopt($ch, CURLOPT_POST, 1);
         $response = curl_exec($ch);
         $response = curl_exec($ch);
-        if(curl_getinfo($ch, CURLINFO_RESPONSE_CODE) != 200) {
-            curl_close($ch);
-
-            logModuleCall(
-                'cwp7',
-                __FUNCTION__,
-                $data,
-                'debug addDomain',
-                $response
-            );
-    
-            return array('status' => 'Error', 'err_msg' => $response['msj'] ? $response['msj'] : curl_error($ch));
-        };
         curl_close($ch);
         curl_close($ch);
         return json_decode($response, true);
         return json_decode($response, true);
     }
     }