andre 3 лет назад
Родитель
Сommit
9e0b6ee13f
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      api/cwp7/Admin.php

+ 4 - 4
api/cwp7/Admin.php

@@ -323,10 +323,10 @@ class cwp7_Admin {
         curl_setopt($ch, CURLOPT_URL, $this->cwp7URL . 'v1/' . $endpoint);
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
         curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
-        curl_setopt($cwp7Client, CURLOPT_SSL_VERIFYPEER, false);
-        curl_setopt($cwp7Client, CURLOPT_SSL_VERIFYHOST, false);
-        curl_setopt ($ch, CURLOPT_POSTFIELDS, http_build_query($data));
-        curl_setopt ($ch, CURLOPT_POST, 1);
+        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
+        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
+        curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
+        curl_setopt($ch, CURLOPT_POST, 1);
         $response = curl_exec($ch);
 /*        if(curl_getinfo($ch, CURLINFO_RESPONSE_CODE) != 200) {
             curl_close($ch);