summaryrefslogtreecommitdiffstats
path: root/lib/private/Updater
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-12-18 21:40:17 +0100
committerMorris Jobke <hey@morrisjobke.de>2017-12-18 21:48:58 +0100
commit1beffa058a493a0c9f36a0280fb9e5e354e0d066 (patch)
tree84318e9a3029ec21915100dcef0f57710bd5bd7a /lib/private/Updater
parent3da92a9a781a4f16ef9cf14aebb47a6f44945fd8 (diff)
downloadnextcloud-server-1beffa058a493a0c9f36a0280fb9e5e354e0d066.tar.gz
nextcloud-server-1beffa058a493a0c9f36a0280fb9e5e354e0d066.zip
Cache final result of update check
If the parsed data is not a valid response we should not cache it and only cache the preprocessed result set. Fixes #7442 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Updater')
-rw-r--r--lib/private/Updater/VersionCheck.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/private/Updater/VersionCheck.php b/lib/private/Updater/VersionCheck.php
index 6774ef307b5..c7b829c9ec5 100644
--- a/lib/private/Updater/VersionCheck.php
+++ b/lib/private/Updater/VersionCheck.php
@@ -101,12 +101,10 @@ class VersionCheck {
} else {
libxml_clear_errors();
}
- } else {
- $data = [];
}
// Cache the result
- $this->config->setAppValue('core', 'lastupdateResult', json_encode($data));
+ $this->config->setAppValue('core', 'lastupdateResult', json_encode($tmp));
return $tmp;
}