remove unneeded LOWER. Fixes #8202

This commit is contained in:
Victor Dubiniuk 2014-04-14 21:49:46 +03:00
parent 340089f270
commit 91d40f5033
1 changed files with 1 additions and 1 deletions

View File

@ -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 {