We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3eb0d4f commit 9a5ca23Copy full SHA for 9a5ca23
1 file changed
lib/private/User/User.php
@@ -139,7 +139,7 @@ public function getDisplayName() {
139
public function setDisplayName($displayName) {
140
$displayName = trim($displayName);
141
$oldDisplayName = $this->getDisplayName();
142
- if ($this->backend->implementsActions(Backend::SET_DISPLAYNAME) && !empty($displayName)) {
+ if ($this->backend->implementsActions(Backend::SET_DISPLAYNAME) && !empty($displayName) && $displayName !== $oldDisplayName) {
143
$result = $this->backend->setDisplayName($this->uid, $displayName);
144
if ($result) {
145
$this->displayName = $displayName;
0 commit comments