diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-06-03 13:39:34 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-06-03 13:39:34 +0200 |
commit | 83fbdc903f324dc2a789f5b8ebedb020f7727d89 (patch) | |
tree | 92644e62bf835e24bdc8d1911345920fb9a59908 /lib/user | |
parent | eb2a1e0f8a9514530702cbb049a309ad3ee75938 (diff) | |
download | nextcloud-server-83fbdc903f324dc2a789f5b8ebedb020f7727d89.tar.gz nextcloud-server-83fbdc903f324dc2a789f5b8ebedb020f7727d89.zip |
cast result to bool
Diffstat (limited to 'lib/user')
-rw-r--r-- | lib/user/user.php | 3 |
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; } |