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