Fix reference error

This commit is contained in:
Alex Cabal 2024-11-25 09:55:13 -06:00
parent 186b8ac1a6
commit 9bfa8915f3

View file

@ -168,7 +168,7 @@ class User{
}
// Some benefits require this `User` to have a password set.
if($this->Benefits->RequiresPassword && $this->PasswordHash === null){
if($this->Benefits?->RequiresPassword && $this->PasswordHash === null){
$error->Add(new Exceptions\BenefitsRequirePasswordException());
}