Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2020-02-14 00:03:44 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2020-02-14 00:03:44 +0300
commitb1a6f66fd9676e9d7c9ceed5a10d07806790ae02 (patch)
tree8fc4033b149bf128ef82d07d8d447c8c8aa092cc /lib
parent869277b005027e8d1e13ae1a5e48923fa278da6f (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.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;
}
/**