diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-06-27 15:14:26 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-07-03 11:37:49 +0200 |
commit | 8fc498fb820ed1459475eec98cfedb23161dd643 (patch) | |
tree | 600fec2bac33ad66d1b06eedfd8cca734ab9e070 /apps/settings/lib/Controller/CheckSetupController.php | |
parent | acb95d5c0f5d0f3d5ea4a88b4adf1be62f52c29a (diff) | |
download | nextcloud-server-8fc498fb820ed1459475eec98cfedb23161dd643.tar.gz nextcloud-server-8fc498fb820ed1459475eec98cfedb23161dd643.zip |
fix(IntegrityCheck): Ensure the check is run if no results are available
If there are no cached results the current implementation was also returning an empty array,
but this was the same as when there was a successful run.
So to distinguish this we return `null` if there are *no* results.
In this case we need to rerun the integrity checker.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/settings/lib/Controller/CheckSetupController.php')
-rw-r--r-- | apps/settings/lib/Controller/CheckSetupController.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php index 5cf48d38ffb..d4e05ec90e4 100644 --- a/apps/settings/lib/Controller/CheckSetupController.php +++ b/apps/settings/lib/Controller/CheckSetupController.php @@ -85,6 +85,10 @@ class CheckSetupController extends Controller { $completeResults = $this->checker->getResults(); + if ($completeResults === null) { + return new DataDisplayResponse('Integrity checker has not been run. Integrity information not available.'); + } + if (!empty($completeResults)) { $formattedTextResponse = 'Technical information ===================== |