This commit is contained in:
denisdulici 2018-09-08 17:57:48 +03:00
parent fb8c918ae2
commit 973ea14c6c

View File

@ -54,7 +54,7 @@ class Updater
// Unzip the file
$zip = new ZipArchive();
if (!$zip->open($file) || !$zip->extractTo($temp_path)) {
if (($zip->open($file) !== true) || !$zip->extractTo($temp_path)) {
return false;
}
@ -107,7 +107,7 @@ class Updater
$url = 'apps/' . $alias . '/download/' . $version . '/' . $info['akaunting'] . '/' . $info['token'];
}
$response = static::getRemote($url, ['timeout' => 50, 'track_redirects' => true]);
$response = static::getRemote($url, ['timeout' => 30, 'track_redirects' => true]);
// Exception
if ($response instanceof RequestException) {