cast result to bool
This commit is contained in:
parent
eb2a1e0f8a
commit
83fbdc903f
|
@ -82,7 +82,8 @@ class User {
|
||||||
public function setDisplayName($displayName) {
|
public function setDisplayName($displayName) {
|
||||||
if ($this->canChangeDisplayName()) {
|
if ($this->canChangeDisplayName()) {
|
||||||
$this->displayName = $displayName;
|
$this->displayName = $displayName;
|
||||||
return $this->backend->setDisplayName($this->uid, $displayName);
|
$result = $this->backend->setDisplayName($this->uid, $displayName);
|
||||||
|
return $result !== false;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue