improper group info on new groups causing navbar problems

This commit is contained in:
skeeter 2000-10-11 00:18:42 +00:00
parent 77768a90ef
commit fc91dfaf5b

View File

@ -35,9 +35,10 @@
if (! $error) {
$phpgw->db->lock(array("accounts","groups"));
$phpgw->accounts->add_app($n_group_permissions);
$phpgw->db->query("INSERT INTO groups (group_name,group_apps) VALUES "
. "('$n_group','"
. $phpgw->accounts->array_to_string("none",$n_group_permissions) . "')");
. $phpgw->accounts->add_app("",True) . "')");
$phpgw->db->query("SELECT group_id FROM groups WHERE group_name='$n_group'");
$phpgw->db->next_record();
$group_con = $phpgw->db->f("group_id");