]> 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:31:07 +0000 (22:31 +0200)
classes/Profile.php

index 25a41bee72cb9b5b768be616035af9d78e5bada1..49addfe47fe887d72d84f73c57fde62c25ed1098 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;
         }