diff --git a/app/Utilities/Updater.php b/app/Utilities/Updater.php index 61e356976..6873aa064 100644 --- a/app/Utilities/Updater.php +++ b/app/Utilities/Updater.php @@ -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) {