|
@@ -316,10 +316,19 @@ body {
|
|
|
function plugin_user_register($id) {
|
|
|
$user_info = get_userdata($id);
|
|
|
|
|
|
+ if (empty($_POST['r_proselect'])) {
|
|
|
+ $_POST['r_proselect'] = "Perspektiv";
|
|
|
+ }
|
|
|
update_user_meta($id, 'Proselect', $_POST['r_proselect']);
|
|
|
|
|
|
+ if (empty($_POST['r_navn'])) {
|
|
|
+ $_POST['r_navn'] = "ingen";
|
|
|
+ }
|
|
|
update_user_meta($id, 'Navn', $_POST['r_navn']);
|
|
|
|
|
|
+ if (empty($_POST['r_membership'])) {
|
|
|
+ $_POST['r_membership'] = "ingen";
|
|
|
+ }
|
|
|
update_user_meta($id, 'Gruppe', $_POST['r_membership']);
|
|
|
|
|
|
// update_usermeta($id, 'Institution' , $_POST['r_institution'] );
|