From: Robin Appelman Date: Mon, 3 Jun 2013 11:39:34 +0000 (+0200) Subject: cast result to bool X-Git-Tag: v6.0.0alpha2~688^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=83fbdc903f324dc2a789f5b8ebedb020f7727d89;p=nextcloud-server.git cast result to bool --- 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; }