]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Can't use return-value in empty()
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 4 Oct 2015 20:31:07 +0000 (22:31 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 4 Oct 2015 20:32:14 +0000 (22:32 +0200)
classes/Profile.php

index 09f9ca71d109933db6509cb883ec1bee866d222c..5ef77a9506fb5c48b63ba966f2bd69b3c05be11b 100644 (file)
@@ -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;
         }