check for curl errors

This commit is contained in:
Peter Goodhall
2019-06-19 17:21:27 +01:00
parent f5b8b101a1
commit 50ea6a61d9

View File

@@ -71,6 +71,11 @@ class Clublog extends CI_Controller {
curl_setopt($request, CURLOPT_RETURNTRANSFER, true);
echo curl_exec($request);
if(curl_errno($ch)) {
echo 'Curl error: '.curl_error($ch);
}
curl_close ($ch);
$results = strval($request);
$check = strpos($results, 'accepted');