Fix version verify.

This commit is contained in:
James Cole
2019-11-01 05:51:25 +01:00
parent c4256dd25b
commit a4906a2d21
2 changed files with 4 additions and 3 deletions

View File

@@ -61,10 +61,10 @@ class UpdateRequest implements UpdateRequestInterface
throw new FireflyException('Invalid JSON in server response.');
}
if (!isset($json[$channel])) {
if (!isset($json['firefly_iii'][$channel])) {
throw new FireflyException(sprintf('Unknown update channel "%s"', $channel));
}
return $json[$channel];
return $json['firefly_iii'][$channel];
}
}