mirror of
https://github.com/nextcloud/server.git
synced 2026-03-03 05:51:07 -05:00
commit
707658c00a
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue