aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/user
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-04-17 16:10:33 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-04-17 16:10:33 +0200
commit707658c00a788949ee94912001edc8d730345d7a (patch)
tree7fd3063766e79c6e5b3a79396621a13710a5ce40 /lib/private/user
parenta2a0eb370b9b8473300e4b687b2bf2e176074f94 (diff)
parent91d40f5033a4b8d30147a0f9673375f7aeea4271 (diff)
downloadnextcloud-server-707658c00a788949ee94912001edc8d730345d7a.tar.gz
nextcloud-server-707658c00a788949ee94912001edc8d730345d7a.zip
Merge pull request #8205 from owncloud/fix-8202
Add one more LOWER.
Diffstat (limited to 'lib/private/user')
-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 {