summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 15e6643dfb3..994a47011e6 100644
--- a/lib/private/user/database.php
+++ b/lib/private/user/database.php
@@ -121,7 +121,7 @@ class OC_User_Database extends OC_User_Backend {
*/
public function setDisplayName($uid, $displayName) {
if ($this->userExists($uid)) {
- $query = OC_DB::prepare('UPDATE `*PREFIX*users` SET `displayname` = ? WHERE LOWER(`uid`) = ?');
+ $query = OC_DB::prepare('UPDATE `*PREFIX*users` SET `displayname` = ? WHERE LOWER(`uid`) = LOWER(?)');
$query->execute(array($displayName, $uid));
return true;
} else {