Can't use return-value in empty()

This commit is contained in:
Mikael Nordfeldth 2015-10-04 22:31:07 +02:00
parent af1b0915f4
commit ec19661312

View File

@ -144,7 +144,7 @@ class Profile extends Managed_DataObject
public function hasPassword() public function hasPassword()
{ {
try { try {
return !empty($this->getUser()->hasPassword()); return $this->getUser()->hasPassword();
} catch (NoSuchUserException $e) { } catch (NoSuchUserException $e) {
return false; return false;
} }