Fix error messages

This commit is contained in:
Igor Scheller 2023-12-27 19:50:38 +01:00 committed by msquare
parent 57862ba722
commit 1d3509ba3c
2 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ function shift_entry_create_controller_user(Shift $shift, AngelType $angeltype):
$request = request();
$signup_user = auth()->user();
$needed_angeltype = (new AngelType())->forceFill(NeededAngeltype_by_Shift_and_Angeltype($shift, $angeltype));
$needed_angeltype = (new AngelType())->forceFill(NeededAngeltype_by_Shift_and_Angeltype($shift, $angeltype) ?: []);
$shift_entries = $shift->shiftEntries()
->where('angel_type_id', $angeltype->id)
->get();

View File

@ -289,7 +289,7 @@ function admin_user()
$user_source->email = $request->postData('eemail');
}
$nick = trim($request->get('eNick'));
$nick = trim((string)$request->get('eNick'));
$nickValid = (new Username())->validate($nick);
$changed_nick = false;