fixed #480
This commit is contained in:
		| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user