Selaa lähdekoodia

lib/private/User: do not change user properties if value has not changed

tags/v16.0.0RC1
Leon Klingele 5 vuotta sitten
vanhempi
commit
9a5ca231bf
No account linked to committer's email address
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      lib/private/User/User.php

+ 1
- 1
lib/private/User/User.php Näytä tiedosto

@@ -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…
Peruuta
Tallenna