MAJ en Thelia 2.3.4
This commit is contained in:
@@ -596,7 +596,13 @@ class Update
|
||||
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5);
|
||||
curl_setopt($curl, CURLOPT_TIMEOUT, 5);
|
||||
$res = curl_exec($curl);
|
||||
if (Version::parse($res))
|
||||
return $res;
|
||||
|
||||
try {
|
||||
if (Version::parse($res)) {
|
||||
return trim($res);
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user