mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
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:
@@ -139,7 +139,6 @@ class Contestcalendar extends CI_Controller {
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
|
||||
$rssRawData = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
|
||||
if ($rssRawData === FALSE) {
|
||||
$msg = "Something went wrong with fetching the Contest Data";
|
||||
@@ -148,8 +147,6 @@ class Contestcalendar extends CI_Controller {
|
||||
}
|
||||
|
||||
$this->cache->save('RssRawContestCal', $rssRawData, (60 * 60 * 12)); // 12 hours cache time
|
||||
|
||||
curl_close($ch);
|
||||
}
|
||||
|
||||
return $rssRawData;
|
||||
|
||||
@@ -116,7 +116,6 @@ class cron extends CI_Controller {
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
||||
}
|
||||
$crun = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
|
||||
if ($crun !== false) {
|
||||
echo "CRON: " . $cron->id . " -> CURL Result: " . $crun . "\n";
|
||||
|
||||
@@ -374,7 +374,6 @@ class eqsl extends CI_Controller {
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, 'Wavelog-eQSL/1.0');
|
||||
$file = curl_exec($ch);
|
||||
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
||||
curl_close($ch);
|
||||
|
||||
if ($file === false || $http_code != 200) {
|
||||
show_error(__('Failed to fetch eQSL image data'), 503);
|
||||
@@ -412,7 +411,6 @@ class eqsl extends CI_Controller {
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, 'Wavelog-eQSL/1.0');
|
||||
$content = curl_exec($ch);
|
||||
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
||||
curl_close($ch);
|
||||
|
||||
if ($content === false || $http_code != 200) {
|
||||
show_error(__('Failed to download eQSL image'), 503);
|
||||
|
||||
@@ -42,7 +42,6 @@ class Qrz extends CI_Controller {
|
||||
curl_setopt( $ch, CURLOPT_USERAGENT, 'Wavelog/'.$this->optionslib->get_option('version'));
|
||||
|
||||
$content = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
|
||||
if ($content){
|
||||
if (stristr($content,'RESULT=OK')) {
|
||||
|
||||
Reference in New Issue
Block a user