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

+ 1 - 1
api/cwp7/Admin.php

@@ -409,7 +409,7 @@ class cwp7_Admin {
                 $response
                 $response
             );
             );
     
     
-            return array('status' => 'Error', 'err_msg' => curl_error($ch));
+            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);