aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2020-02-13 22:03:44 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-02-14 09:08:03 +0000
commitcb1c0d7221a3aafb4337b065814f161d7d18eb33 (patch)
tree32be94129f0dde15b5e1d6e4d275b02268155d64 /lib/private
parent1185289509dd3d6c54d10c52e2bec2b27b8bd765 (diff)
downloadnextcloud-server-cb1c0d7221a3aafb4337b065814f161d7d18eb33.tar.gz
nextcloud-server-cb1c0d7221a3aafb4337b065814f161d7d18eb33.zip
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/private')
-rw-r--r--lib/private/Updater/ChangesCheck.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/Updater/ChangesCheck.php b/lib/private/Updater/ChangesCheck.php
index f1f44cc59c8..7346ceab6b1 100644
--- a/lib/private/Updater/ChangesCheck.php
+++ b/lib/private/Updater/ChangesCheck.php
@@ -55,7 +55,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;
}
/**