]> source.dussan.org Git - nextcloud-server.git/commitdiff
User: return backend result
authorRobin Appelman <icewind@owncloud.com>
Mon, 3 Jun 2013 11:19:01 +0000 (13:19 +0200)
committerRobin Appelman <icewind@owncloud.com>
Mon, 3 Jun 2013 11:19:01 +0000 (13:19 +0200)
lib/user/user.php

index fb97ff1a6d819ba86debee8591ea5965c1604c2f..05d5a0935b4fcea2794b952fb34f53f1bf59053d 100644 (file)
@@ -76,8 +76,7 @@ class User {
        public function setDisplayName($displayName) {
                if ($this->canChangeDisplayName()) {
                        $this->displayName = $displayName;
-                       $this->backend->setDisplayName($this->uid, $displayName);
-                       return true;
+                       return $this->backend->setDisplayName($this->uid, $displayName);
                } else {
                        return false;
                }