MAJ en Thelia 2.3.4

This commit is contained in:
2020-05-03 08:14:07 +02:00
parent 72ddf49e60
commit 35a800ca0e
328 changed files with 9560 additions and 14163 deletions

View File

@@ -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;
}
}
}