aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2017-02-01 10:49:07 +0100
committerMorris Jobke <hey@morrisjobke.de>2017-03-20 02:01:41 -0600
commit592c04a9db83c27df8155ae97c6693fe2170e543 (patch)
tree7264ad78fd8f79628cd98dd7591c0e48a4e63b1a /lib
parent528a903a7b23ea628e6ec2fc9a221821297c0bec (diff)
downloadnextcloud-server-592c04a9db83c27df8155ae97c6693fe2170e543.tar.gz
nextcloud-server-592c04a9db83c27df8155ae97c6693fe2170e543.zip
cache loadUser if not exists
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/User/Database.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/User/Database.php b/lib/private/User/Database.php
index 060953c3009..efa6672ccee 100644
--- a/lib/private/User/Database.php
+++ b/lib/private/User/Database.php
@@ -254,7 +254,7 @@ class Database extends Backend implements IUserBackend {
$this->cache[$uid] = false;
- while ($row = $result->fetchRow()) {
+ if ($row = $result->fetchRow()) {
$this->cache[$uid]['uid'] = $row['uid'];
$this->cache[$uid]['displayname'] = $row['displayname'];
}