improper group info on new groups causing navbar problems

This commit is contained in:
skeeter 2000-10-11 00:02:39 +00:00
parent 5001c5bdbd
commit 77768a90ef
2 changed files with 3 additions and 4 deletions

View File

@ -65,8 +65,7 @@
if ($old_group_name <> $n_group) {
$basedir = $phpgw_info["server"]["server_root"] . $sep . "filemanager" . $sep . "groups" . $sep;
$basedir = $phpgw_info["server"]["files_dir"] . $sep . "groups" . $sep;
if (! @rename($basedir . $old_group_name, $basedir . $n_group)) {
$cd = 39;
} else {

View File

@ -37,14 +37,14 @@
$phpgw->db->query("INSERT INTO groups (group_name,group_apps) VALUES "
. "('$n_group','"
. $phpgw->accounts->array_to_string("none",$n_group_permissions) . "') ");
. $phpgw->accounts->array_to_string("none",$n_group_permissions) . "')");
$phpgw->db->query("SELECT group_id FROM groups WHERE group_name='$n_group'");
$phpgw->db->next_record();
$group_con = $phpgw->db->f("group_id");
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();
$phpgw->db->next_record();
$user_groups = $phpgw->db->f("account_groups") . ",$group_con:0,";
$user_groups = ereg_replace(",,",",",$user_groups);