From cfbf8db153531ec677f19cf43cb41360287e08c5 Mon Sep 17 00:00:00 2001 From: skeeter Date: Wed, 27 Sep 2000 23:50:11 +0000 Subject: [PATCH] fixes for accounts --- admin/editgroup.php | 2 +- admin/newgroup.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/editgroup.php b/admin/editgroup.php index b40422f7ee..c37698d94d 100755 --- a/admin/editgroup.php +++ b/admin/editgroup.php @@ -55,7 +55,7 @@ for ($i=0; $idb->query("SELECT account_groups FROM accounts WHERE account_id=".$n_users[$i]); $phpgw->db->next_record(); - $user_groups = $phpgw->db->f("groups") . ",$group_con:0,"; + $user_groups = $phpgw->db->f("account_groups") . ",$group_con:0,"; $user_groups = ereg_replace(",,",",",$user_groups); $phpgw->db->query("UPDATE accounts SET account_groups='$user_groups' WHERE account_id=".$n_users[$i]); diff --git a/admin/newgroup.php b/admin/newgroup.php index dccdb3cea9..d8b95cfd66 100755 --- a/admin/newgroup.php +++ b/admin/newgroup.php @@ -48,7 +48,7 @@ $user_groups = $phpgw->db->f("account_groups") . ",$group_con,"; $user_groups = ereg_replace(",,",",",$user_groups); - $phpgw->db->query("UPDATE accounts SET account_groups='$user_groups' WHERE account_id='" . $n_users[$i] . "'"); + $phpgw->db->query("UPDATE accounts SET account_groups='$user_groups' WHERE account_id=".$n_users[$i]); } $sep = $phpgw->common->filesystem_separator();