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:
@@ -102,7 +102,6 @@ class Dxcluster_model extends CI_Model {
|
||||
$jsonraw = curl_exec($ch);
|
||||
$curl_error = curl_error($ch);
|
||||
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
||||
curl_close($ch);
|
||||
|
||||
// Check for curl errors
|
||||
if ($curl_error || $jsonraw === false) {
|
||||
@@ -554,7 +553,6 @@ class Dxcluster_model extends CI_Model {
|
||||
curl_setopt($ch, CURLOPT_HEADER, false);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
$jsonraw = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
$json = json_decode($jsonraw);
|
||||
|
||||
$date = date('Ymd', time());
|
||||
|
||||
Reference in New Issue
Block a user