Merge pull request #350 from nextcloud/fix-check-certificate-bundles
fix check if the certificate bundle needs to be updated
This commit is contained in:
commit
103417fd9c
|
@ -238,8 +238,9 @@ class CertificateManager implements ICertificateManager {
|
||||||
if (!$this->view->file_exists($targetBundle)) {
|
if (!$this->view->file_exists($targetBundle)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!is_null($uid)) { // also depend on the system bundle
|
if (!is_null($uid)) { // also depend on the system bundle
|
||||||
$sourceBundles[] = $this->view->filemtime($this->getCertificateBundle(null));
|
$sourceMTimes[] = $this->view->filemtime($this->getCertificateBundle(null));
|
||||||
}
|
}
|
||||||
|
|
||||||
$sourceMTime = array_reduce($sourceMTimes, function ($max, $mtime) {
|
$sourceMTime = array_reduce($sourceMTimes, function ($max, $mtime) {
|
||||||
|
|
Loading…
Reference in New Issue