cache loadUser if not exists

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Jörn Friedrich Dreyer 2017-02-01 10:49:07 +01:00 committed by Morris Jobke
parent 528a903a7b
commit 592c04a9db
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
1 changed files with 1 additions and 1 deletions

View File

@ -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'];
}