User: return backend result

This commit is contained in:
Robin Appelman 2013-06-03 13:19:01 +02:00
parent fbe3213fec
commit 1a4021a0fe
1 changed files with 1 additions and 2 deletions

View File

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