From 83fbdc903f324dc2a789f5b8ebedb020f7727d89 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 3 Jun 2013 13:39:34 +0200 Subject: [PATCH] cast result to bool --- lib/user/user.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.5