summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-01-10 10:06:48 +0100
committerGitHub <noreply@github.com>2017-01-10 10:06:48 +0100
commitbc8e565e2ab1081f168b1e36decf39d1ea1df839 (patch)
treede28df1a05d4dd868f82c8cbe501b833ee3e1c64
parent307d45e3bdf32c50e46a47b746282ecfbb43b384 (diff)
parent135198bf0dd091768428ac78b70d06d9c7190f27 (diff)
downloadnextcloud-server-bc8e565e2ab1081f168b1e36decf39d1ea1df839.tar.gz
nextcloud-server-bc8e565e2ab1081f168b1e36decf39d1ea1df839.zip
Merge pull request #2998 from Loki3000/master
Default cache value for null user
-rw-r--r--lib/private/User/Database.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/User/Database.php b/lib/private/User/Database.php
index 28cb3302858..69826f49be3 100644
--- a/lib/private/User/Database.php
+++ b/lib/private/User/Database.php
@@ -75,6 +75,7 @@ class Database extends Backend implements IUserBackend {
*/
public function __construct($eventDispatcher = null) {
$this->cache = new CappedMemoryCache();
+ $this->cache[null] = false;
$this->eventDispatcher = $eventDispatcher ? $eventDispatcher : \OC::$server->getEventDispatcher();
}