diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2017-12-19 10:12:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-19 10:12:33 +0100 |
commit | e550a3ddd8a391a25581302dc87d4877f6c53f0d (patch) | |
tree | d8791750680ed42e0dbd5413e2fe08e72a2d3585 /lib | |
parent | b01d20c0d7b76dc04fcbfa027c51b14d740dc67e (diff) | |
parent | 1beffa058a493a0c9f36a0280fb9e5e354e0d066 (diff) | |
download | nextcloud-server-e550a3ddd8a391a25581302dc87d4877f6c53f0d.tar.gz nextcloud-server-e550a3ddd8a391a25581302dc87d4877f6c53f0d.zip |
Merge pull request #7562 from nextcloud/fix-wrongly-cached-result
Cache final result of update check
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Updater/VersionCheck.php | 4 |
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; } |