Fix error messages
This commit is contained in:
parent
57862ba722
commit
1d3509ba3c
|
@ -210,7 +210,7 @@ function shift_entry_create_controller_user(Shift $shift, AngelType $angeltype):
|
||||||
$request = request();
|
$request = request();
|
||||||
|
|
||||||
$signup_user = auth()->user();
|
$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()
|
$shift_entries = $shift->shiftEntries()
|
||||||
->where('angel_type_id', $angeltype->id)
|
->where('angel_type_id', $angeltype->id)
|
||||||
->get();
|
->get();
|
||||||
|
|
|
@ -289,7 +289,7 @@ function admin_user()
|
||||||
$user_source->email = $request->postData('eemail');
|
$user_source->email = $request->postData('eemail');
|
||||||
}
|
}
|
||||||
|
|
||||||
$nick = trim($request->get('eNick'));
|
$nick = trim((string)$request->get('eNick'));
|
||||||
$nickValid = (new Username())->validate($nick);
|
$nickValid = (new Username())->validate($nick);
|
||||||
|
|
||||||
$changed_nick = false;
|
$changed_nick = false;
|
||||||
|
|
Loading…
Reference in New Issue