From ef3a4a6e5cc2b82b7451be9e8f0936c4434ec2a7 Mon Sep 17 00:00:00 2001 From: jengo Date: Wed, 18 Oct 2000 03:46:57 +0000 Subject: [PATCH] Fixed access columns and groups columns not working correctly --- admin/editaccount.php | 2 +- admin/newaccount.php | 6 +++--- admin/viewaccount.php | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/admin/editaccount.php b/admin/editaccount.php index eac64c411a..f470392070 100755 --- a/admin/editaccount.php +++ b/admin/editaccount.php @@ -102,7 +102,7 @@ . " account_lastname='" . addslashes($n_lastname) . "', account_permissions='" . $phpgw->accounts->add_app("",True) . "', account_status='" . "$n_account_status', account_groups='" - . $phpgw->accounts->array_to_string("none",$n_groups) + . $phpgw->accounts->groups_array_to_string($n_groups) . "' where account_lid='$n_loginid'"); $phpgw->db->unlock(); diff --git a/admin/newaccount.php b/admin/newaccount.php index c903d8a817..e8b76c8f76 100755 --- a/admin/newaccount.php +++ b/admin/newaccount.php @@ -71,7 +71,7 @@ . "account_permissions,account_groups,account_status,account_lastpwd_change) values ('$n_loginid'" . ",'" . md5($n_passwd) . "','" . addslashes($n_firstname) . "','" . addslashes($n_lastname) . "','" . $phpgw->accounts->add_app("",True) - . "','" . $phpgw->accounts->array_to_string("none",$n_groups) . "','A',0)"; + . "','" . $phpgw->accounts->groups_array_to_string($n_groups) . "','A',0)"; $phpgw->db->query($sql); $phpgw->db->unlock(); @@ -116,10 +116,10 @@ $t->set_var("n_passwd_2_value",$n_passwd_2); $t->set_var("lang_firstname",lang("First Name")); - $t->set_var("n_firstname_value",$firstname_value); + $t->set_var("n_firstname_value",$firstname); $t->set_var("lang_lastname",lang("Last Name")); - $t->set_var("n_lastname_value",$lastname_value); + $t->set_var("n_lastname_value",$lastname); $t->set_var("lang_groups",lang("Groups")); $group_select = '