summaryrefslogtreecommitdiffstats
path: root/lib/private/user/database.php
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2014-04-14 21:49:46 +0300
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2014-04-14 22:19:21 +0300
commit91d40f5033a4b8d30147a0f9673375f7aeea4271 (patch)
tree02cd11b64cbe45a14dfc42b5b1fd6a56ca4c304b /lib/private/user/database.php
parent340089f270a778aeb296b1744821dcdb5878131e (diff)
downloadnextcloud-server-91d40f5033a4b8d30147a0f9673375f7aeea4271.tar.gz
nextcloud-server-91d40f5033a4b8d30147a0f9673375f7aeea4271.zip
remove unneeded LOWER. Fixes #8202
Diffstat (limited to 'lib/private/user/database.php')
-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 {