cache loadUser if not exists
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
528a903a7b
commit
592c04a9db
|
@ -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'];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue