Use isOK() for version check

pull/439/head
Richard van den Berg 2015-03-19 15:09:54 +01:00
parent 850e4bd19f
commit 75f93641dc
1 changed files with 1 additions and 1 deletions

View File

@ -487,7 +487,7 @@ class ServersController extends AppController {
} catch (Exception $e) {
return false;
}
if ($response->code < 300 && !empty($tags)) {
if ($response->isOK() && !empty($tags)) {
$json_decoded_tags = json_decode($tags);
// find the latest version tag in the v[major].[minor].[hotfix] format