mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-16 08:25:29 +00:00
Internet: curl_init() may return false on error (unclear on reasons)
This commit is contained in:
parent
53dbbd5f97
commit
cb6b59a52a
@ -208,6 +208,9 @@ class Internet{
|
|||||||
}
|
}
|
||||||
|
|
||||||
$ch = curl_init($page);
|
$ch = curl_init($page);
|
||||||
|
if($ch === false){
|
||||||
|
throw new InternetException("Unable to create new cURL session");
|
||||||
|
}
|
||||||
|
|
||||||
curl_setopt_array($ch, $extraOpts + [
|
curl_setopt_array($ch, $extraOpts + [
|
||||||
CURLOPT_SSL_VERIFYPEER => false,
|
CURLOPT_SSL_VERIFYPEER => false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user