always check the mtime of the system bundle and additionally the user specific certificate bundle if a user is given

This commit is contained in:
Bjoern Schiessle 2016-07-08 18:09:08 +02:00
parent a84250e0af
commit 49cad153af
No known key found for this signature in database
GPG key ID: 2378A753E2BF04F6

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) {