From 973ea14c6cfe60fa78a087c0851d09437b487cad Mon Sep 17 00:00:00 2001 From: denisdulici Date: Sat, 8 Sep 2018 17:57:48 +0300 Subject: [PATCH] fixed #480 --- app/Utilities/Updater.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {