]> source.dussan.org Git - nextcloud-server.git/commitdiff
cast result to bool
authorRobin Appelman <icewind@owncloud.com>
Mon, 3 Jun 2013 11:39:34 +0000 (13:39 +0200)
committerRobin Appelman <icewind@owncloud.com>
Mon, 3 Jun 2013 11:39:34 +0000 (13:39 +0200)
lib/user/user.php

index 1d52b90e811919396c9ccab2117ed0a9a9620eb7..f9466b71499ff638e8d10e9293839b8d8bc77983 100644 (file)
@@ -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;
                }