summaryrefslogtreecommitdiffstats
path: root/lib/user
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-06-03 13:39:34 +0200
committerRobin Appelman <icewind@owncloud.com>2013-06-03 13:39:34 +0200
commit83fbdc903f324dc2a789f5b8ebedb020f7727d89 (patch)
tree92644e62bf835e24bdc8d1911345920fb9a59908 /lib/user
parenteb2a1e0f8a9514530702cbb049a309ad3ee75938 (diff)
downloadnextcloud-server-83fbdc903f324dc2a789f5b8ebedb020f7727d89.tar.gz
nextcloud-server-83fbdc903f324dc2a789f5b8ebedb020f7727d89.zip
cast result to bool
Diffstat (limited to 'lib/user')
-rw-r--r--lib/user/user.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/user/user.php b/lib/user/user.php
index 1d52b90e811..f9466b71499 100644
--- a/lib/user/user.php
+++ b/lib/user/user.php
@@ -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;
}