remove curl_close as it has no effect since php8.0 (https://www.php.net/manual/en/function.curl-close.php)

This commit is contained in:
HB9HIL
2026-01-26 10:41:29 +01:00
parent 2a4a5014f6
commit 8a8bb4d337
22 changed files with 32 additions and 94 deletions

View File

@@ -22,7 +22,6 @@ class Qrz {
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_USERAGENT, 'Wavelog/'.$ci->optionslib->get_option('version'));
$xml = curl_exec($ch);
curl_close($ch);
// Create XML object
$xml = simplexml_load_string($xml);
@@ -48,7 +47,6 @@ class Qrz {
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_USERAGENT, 'Wavelog/'.$ci->optionslib->get_option('version'));
$xml = curl_exec($ch);
curl_close($ch);
// Create XML object
$xml = simplexml_load_string($xml);
@@ -81,10 +79,8 @@ class Qrz {
if ($httpcode != 200) {
$message = curl_getinfo($ch, CURLINFO_CONTENT_TYPE);
log_message('debug', 'QRZ.com search for callsign: ' . $callsign . ' returned message: ' . $message . ' HTTP code: ' . $httpcode);
curl_close($ch);
return $data['error'] = 'Problems with qrz.com communication'; // Exit function if no 200. If request fails, 0 is returned
}
curl_close($ch);
// Create XML object
$xml = simplexml_load_string($xml);
if (!empty($xml->Session->Error)) {