Internet: curl_init() may return false on error (unclear on reasons)

This commit is contained in:
Dylan K. Taylor 2020-04-15 09:38:39 +01:00
parent 53dbbd5f97
commit cb6b59a52a

View File

@ -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,