From 49cad153afb7dedc70842f9df575f3cb1f41ff27 Mon Sep 17 00:00:00 2001
From: Bjoern Schiessle <bjoern@schiessle.org>
Date: Fri, 8 Jul 2016 18:09:08 +0200
Subject: always check the mtime of the system bundle and additionally the user
 specific certificate bundle if a user is given

---
 lib/private/Security/CertificateManager.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/private/Security/CertificateManager.php b/lib/private/Security/CertificateManager.php
index befdcb6b85b..77d0c844b8c 100644
--- a/lib/private/Security/CertificateManager.php
+++ b/lib/private/Security/CertificateManager.php
@@ -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) {
-- 
cgit v1.2.3