Can't use return-value in empty()

This commit is contained in:
Mikael Nordfeldth 2015-10-04 22:31:07 +02:00
parent 0bd0c65b87
commit 0ba53edd96
1 changed files with 1 additions and 1 deletions

View 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;
}