Fix scenario when creating a new BBS during user registration 'Attempt to read property exists on null'

This commit is contained in:
Deon George 2023-12-15 10:37:18 +11:00
parent 6d9179ed37
commit 7af67de2a8
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class SystemRegister extends FormRequest
$so = $this->route('o');
if ((! $so->exists) && ($request->action === 'create'))
if (((! $so) || (! $so->exists)) && ($request->action === 'create'))
return [
'name' => 'required|min:3',
];