json_encode

This commit is contained in:
CHIEFSOFT\ameye
2024-03-09 21:48:21 -05:00
parent f5128d0974
commit 02658ab9b0
+1 -1
View File
@@ -387,7 +387,7 @@ abstract class BaseController extends Controller
log_message('critical', "API URL FINAL =>".$url );
curl_setopt($curl, CURLOPT_FRESH_CONNECT, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($data));
break;
case "POST":
curl_setopt($curl, CURLOPT_POST, 1);