If cronErros is empty json_decode will return NULL
Fixes #9867 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
c3aea9cdf6
commit
3cbe40ffac
1 changed files with 11 additions and 1 deletions
|
@ -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
|
* @return DataResponse
|
||||||
*/
|
*/
|
||||||
|
@ -527,7 +537,7 @@ Raw output
|
||||||
'hasWorkingFileLocking' => $this->hasWorkingFileLocking(),
|
'hasWorkingFileLocking' => $this->hasWorkingFileLocking(),
|
||||||
'suggestedOverwriteCliURL' => $this->getSuggestedOverwriteCliURL(),
|
'suggestedOverwriteCliURL' => $this->getSuggestedOverwriteCliURL(),
|
||||||
'cronInfo' => $this->getLastCronInfo(),
|
'cronInfo' => $this->getLastCronInfo(),
|
||||||
'cronErrors' => json_decode($this->config->getAppValue('core', 'cronErrors', ''), true),
|
'cronErrors' => $this->getCronErrors(),
|
||||||
'serverHasInternetConnection' => $this->isInternetConnectionWorking(),
|
'serverHasInternetConnection' => $this->isInternetConnectionWorking(),
|
||||||
'isMemcacheConfigured' => $this->isMemcacheConfigured(),
|
'isMemcacheConfigured' => $this->isMemcacheConfigured(),
|
||||||
'memcacheDocs' => $this->urlGenerator->linkToDocs('admin-performance'),
|
'memcacheDocs' => $this->urlGenerator->linkToDocs('admin-performance'),
|
||||||
|
|
Loading…
Reference in a new issue