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:
Joas Schilling 2016-07-11 11:04:49 +02:00 committed by GitHub
commit 103417fd9c
1 changed files with 2 additions and 1 deletions

View File

@ -238,8 +238,9 @@ class CertificateManager implements ICertificateManager {
if (!$this->view->file_exists($targetBundle)) {
return true;
}
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) {