lib/private/User: do not change user properties if value has not changed
This commit is contained in:
parent
3eb0d4f1a4
commit
9a5ca231bf
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ class User implements IUser {
|
|||
public function setDisplayName($displayName) {
|
||||
$displayName = trim($displayName);
|
||||
$oldDisplayName = $this->getDisplayName();
|
||||
if ($this->backend->implementsActions(Backend::SET_DISPLAYNAME) && !empty($displayName)) {
|
||||
if ($this->backend->implementsActions(Backend::SET_DISPLAYNAME) && !empty($displayName) && $displayName !== $oldDisplayName) {
|
||||
$result = $this->backend->setDisplayName($this->uid, $displayName);
|
||||
if ($result) {
|
||||
$this->displayName = $displayName;
|
||||
|
|
Loading…
Reference in a new issue