diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2020-02-17 12:40:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-17 12:40:28 +0100 |
commit | 1bc2b113cac51398efea81f70a6b44520278f7d1 (patch) | |
tree | 304cfb8f0fc53856ae51e894ff7af584e08a7e37 /lib | |
parent | 91f4237eb70e6a230fd048ef3ef9a7cb95df3507 (diff) | |
parent | cb1c0d7221a3aafb4337b065814f161d7d18eb33 (diff) | |
download | nextcloud-server-1bc2b113cac51398efea81f70a6b44520278f7d1.tar.gz nextcloud-server-1bc2b113cac51398efea81f70a6b44520278f7d1.zip |
Merge pull request #19470 from nextcloud/backport/19465/stable18
[stable18] when we receive intentional empty whats new info, do not try to show it
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 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; } /** |