Merge pull request #2861 from HB9HIL/curl_close

remove curl_close()
This commit is contained in:
Fabian Berg
2026-01-26 11:04:06 +01:00
committed by GitHub
22 changed files with 32 additions and 94 deletions

View File

@@ -1181,7 +1181,6 @@ class Logbook_model extends CI_Model {
$result['message'] = 'Curl error: ' . curl_errno($ch);
return $result;
}
curl_close($ch);
}
/*
@@ -1224,7 +1223,6 @@ class Logbook_model extends CI_Model {
$result['message'] = 'Curl error: ' . curl_errno($ch);
return $result;
}
curl_close($ch);
}
/*
@@ -1255,7 +1253,6 @@ class Logbook_model extends CI_Model {
$content = curl_exec($ch); // TODO: better error handling
$errors = curl_error($ch);
$response = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
return $response === 200;
}