summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLoki3000 <github@labcms.ru>2017-01-09 23:34:23 +0300
committerGitHub <noreply@github.com>2017-01-09 23:34:23 +0300
commit135198bf0dd091768428ac78b70d06d9c7190f27 (patch)
treede28df1a05d4dd868f82c8cbe501b833ee3e1c64 /lib
parent307d45e3bdf32c50e46a47b746282ecfbb43b384 (diff)
downloadnextcloud-server-135198bf0dd091768428ac78b70d06d9c7190f27.tar.gz
nextcloud-server-135198bf0dd091768428ac78b70d06d9c7190f27.zip
Default value for null user
For guest users on every request executes query: SELECT `uid`, `displayname` FROM `users` WHERE LOWER(`uid`) = LOWER(null) as I see, uid can't be equal to null by design.
Diffstat (limited to 'lib')
-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();
}