fix problem with default values on registration
This commit is contained in:
parent
f9ab269758
commit
4eedad6c89
|
@ -256,7 +256,7 @@ function guest_register()
|
||||||
$user_angel_types_info = [];
|
$user_angel_types_info = [];
|
||||||
foreach ($selected_angel_types as $selected_angel_type_id) {
|
foreach ($selected_angel_types as $selected_angel_type_id) {
|
||||||
DB::insert(
|
DB::insert(
|
||||||
'INSERT INTO `UserAngelTypes` (`user_id`, `angeltype_id`) VALUES (?, ?)',
|
'INSERT INTO `UserAngelTypes` (`user_id`, `angeltype_id`, `supporter`) VALUES (?, ?, FALSE)',
|
||||||
[$user_id, $selected_angel_type_id]
|
[$user_id, $selected_angel_type_id]
|
||||||
);
|
);
|
||||||
$user_angel_types_info[] = $angel_types[$selected_angel_type_id];
|
$user_angel_types_info[] = $angel_types[$selected_angel_type_id];
|
||||||
|
|
Loading…
Reference in New Issue