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=0ba53edd968ceb53d520351d2846faa97d31bb6f;p=quix0rs-gnu-social.git Can't use return-value in empty() --- diff --git a/classes/Profile.php b/classes/Profile.php index 09f9ca71d1..5ef77a9506 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; }