Sfoglia il codice sorgente

clientareafunctions

andre 3 anni fa
parent
commit
1cd001253c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      api/cwp7/Admin.php

+ 1 - 1
api/cwp7/Admin.php

@@ -409,7 +409,7 @@ class cwp7_Admin {
                 $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);
         return json_decode($response, true);