diff --git a/assets/plugins/updater/plugin.updater.php b/assets/plugins/updater/plugin.updater.php index 1962000d2f..5b273b8fe5 100644 --- a/assets/plugins/updater/plugin.updater.php +++ b/assets/plugins/updater/plugin.updater.php @@ -165,7 +165,9 @@ function updaterFetchReleasePublishedAt($repository, $versionRaw) curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, ['User-Agent: updateNotify widget']); $response = curl_exec($ch); - curl_close($ch); + if (PHP_VERSION_ID < 80500) { + curl_close($ch); + } if (!is_string($response) || $response === '' || strpos(ltrim($response), '{') !== 0) { continue; @@ -948,7 +950,9 @@ function poll() { curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, ['User-Agent: updateNotify widget']); $info = curl_exec($ch); - curl_close($ch); + if (PHP_VERSION_ID < 80500) { + curl_close($ch); + } if (substr($info, 0, 1) != '[') { return; }