diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-02-14 00:03:44 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-02-14 12:09:05 +0300 |
commit | c2f0ebbeed4568dd2ab2210e78a7d5332d507715 (patch) | |
tree | 166de8a6738db3ae3e8b7d74f4f28a0cebd553b8 /lib | |
parent | 44b28aa562fd2621cc8039f561c3055a8fb15504 (diff) |
when we receive intentional empty whats new info, do not try to show it
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Updater/ChangesCheck.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/Updater/ChangesCheck.php b/lib/private/Updater/ChangesCheck.php index 095cf396e89..575a9ceadaf 100644 --- a/lib/private/Updater/ChangesCheck.php +++ b/lib/private/Updater/ChangesCheck.php @@ -53,7 +53,11 @@ class ChangesCheck { public function getChangesForVersion(string $version): array { $version = $this->normalizeVersion($version); $changesInfo = $this->mapper->getChanges($version); - return json_decode($changesInfo->getData(), true); + $changesData = json_decode($changesInfo->getData(), true); + if(empty($changesData)) { + throw new DoesNotExistException(); + } + return $changesData; } /** |