From 1beffa058a493a0c9f36a0280fb9e5e354e0d066 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 18 Dec 2017 21:40:17 +0100 Subject: 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 --- lib/private/Updater/VersionCheck.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib') 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; } -- cgit v1.2.3