Przeglądaj źródła

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

tags/v16.0.0RC1
Leon Klingele 5 lat temu
rodzic
commit
9a5ca231bf
No account linked to committer's email address
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      lib/private/User/User.php

+ 1
- 1
lib/private/User/User.php Wyświetl plik

@@ -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;

Ładowanie…
Anuluj
Zapisz