Merge pull request #2998 from Loki3000/master

Default cache value for null user
This commit is contained in:
Morris Jobke 2017-01-10 10:06:48 +01:00 committed by GitHub
commit bc8e565e2a
1 changed files with 1 additions and 0 deletions

View File

@ -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();
}