diff options
author | Leon Klingele <leon@struktur.de> | 2019-03-06 13:10:18 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2019-04-11 11:20:41 +0200 |
commit | 9a5ca231bfdaaeaea59fd1e36bc312668fb7df39 (patch) | |
tree | f44613a16644def867346220815d2548040ae52e /lib | |
parent | 3eb0d4f1a47b7d3041d99d1571df162657492274 (diff) | |
download | nextcloud-server-9a5ca231bfdaaeaea59fd1e36bc312668fb7df39.tar.gz nextcloud-server-9a5ca231bfdaaeaea59fd1e36bc312668fb7df39.zip |
lib/private/User: do not change user properties if value has not changed
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/User/User.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/User/User.php b/lib/private/User/User.php index 0d12eb494ec..12af787a5a6 100644 --- a/lib/private/User/User.php +++ b/lib/private/User/User.php @@ -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; |