Can't use return-value in empty()
This commit is contained in:
parent
0bd0c65b87
commit
0ba53edd96
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user