Skip to content
Snippets Groups Projects
Unverified Commit 3cbe40ff authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

If cronErros is empty json_decode will return NULL


Fixes #9867

Signed-off-by: default avatarRoeland Jago Douma <roeland@famdouma.nl>
parent c3aea9cd
No related branches found
No related tags found
No related merge requests found
......@@ -513,6 +513,16 @@ Raw output
];
}
protected function getCronErrors() {
$errors = json_decode($this->config->getAppValue('core', 'cronErrors', ''), true);
if (is_array($errors)) {
return $errors;
}
return [];
}
/**
* @return DataResponse
*/
......@@ -527,7 +537,7 @@ Raw output
'hasWorkingFileLocking' => $this->hasWorkingFileLocking(),
'suggestedOverwriteCliURL' => $this->getSuggestedOverwriteCliURL(),
'cronInfo' => $this->getLastCronInfo(),
'cronErrors' => json_decode($this->config->getAppValue('core', 'cronErrors', ''), true),
'cronErrors' => $this->getCronErrors(),
'serverHasInternetConnection' => $this->isInternetConnectionWorking(),
'isMemcacheConfigured' => $this->isMemcacheConfigured(),
'memcacheDocs' => $this->urlGenerator->linkToDocs('admin-performance'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment