Skip to content
Snippets Groups Projects
Commit 83fbdc90 authored by Robin Appelman's avatar Robin Appelman
Browse files

cast result to bool

parent eb2a1e0f
Branches
No related tags found
No related merge requests found
......@@ -82,7 +82,8 @@ class User {
public function setDisplayName($displayName) {
if ($this->canChangeDisplayName()) {
$this->displayName = $displayName;
return $this->backend->setDisplayName($this->uid, $displayName);
$result = $this->backend->setDisplayName($this->uid, $displayName);
return $result !== false;
} else {
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment