summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/user/database.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/user/database.php b/lib/private/user/database.php
index 57ecdda9dad..591ea2a5c98 100644
--- a/lib/private/user/database.php
+++ b/lib/private/user/database.php
@@ -239,7 +239,8 @@ class OC_User_Database extends OC_User_Backend {
}
while ($row = $result->fetchRow()) {
- self::$cache[$uid]['uid'] = $row['uid'];
+ $uid = $row['uid'];
+ self::$cache[$uid]['uid'] = $uid;
self::$cache[$uid]['displayname'] = $row['displayname'];
}