From: Mikael Nordfeldth Date: Sun, 4 Oct 2015 20:31:07 +0000 (+0200) Subject: Can't use return-value in empty() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ec19661312efc9d5200b6464faf91bca84898fe0;p=quix0rs-gnu-social.git Can't use return-value in empty() --- diff --git a/classes/Profile.php b/classes/Profile.php index 25a41bee72..49addfe47f 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -144,7 +144,7 @@ class Profile extends Managed_DataObject public function hasPassword() { try { - return !empty($this->getUser()->hasPassword()); + return $this->getUser()->hasPassword(); } catch (NoSuchUserException $e) { return false; }