fixes for accounts

This commit is contained in:
skeeter 2000-09-27 23:50:11 +00:00
parent ca51df8a55
commit cfbf8db153
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@
for ($i=0; $i<count($n_users);$i++) {
$phpgw->db->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]);

View File

@ -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();