User: return backend result
This commit is contained in:
parent
fbe3213fec
commit
1a4021a0fe
|
@ -76,8 +76,7 @@ class User {
|
||||||
public function setDisplayName($displayName) {
|
public function setDisplayName($displayName) {
|
||||||
if ($this->canChangeDisplayName()) {
|
if ($this->canChangeDisplayName()) {
|
||||||
$this->displayName = $displayName;
|
$this->displayName = $displayName;
|
||||||
$this->backend->setDisplayName($this->uid, $displayName);
|
return $this->backend->setDisplayName($this->uid, $displayName);
|
||||||
return true;
|
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue