forked from GNUsocial/gnu-social
Can't use return-value in empty()
This commit is contained in:
parent
af1b0915f4
commit
ec19661312
@ -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