Skip to content

Commit

Permalink
Merge pull request #350 from nextcloud/fix-check-certificate-bundles
Browse files Browse the repository at this point in the history
fix check if the certificate bundle needs to be updated
  • Loading branch information
nickvergessen authored Jul 11, 2016
2 parents 92f7722 + 49cad15 commit 103417f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/private/Security/CertificateManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,9 @@ private function needsRebundling($uid = '') {
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) {
Expand Down

0 comments on commit 103417f

Please sign in to comment.