deletegroup.php is now working a little better

This commit is contained in:
jengo 2000-08-20 22:55:00 +00:00
parent 6ea710b2c8
commit 0fe690d6ec
3 changed files with 9 additions and 3 deletions

View File

@ -27,8 +27,11 @@
} }
while ($user = each($groups)) { while ($user = each($groups)) {
$user[1] = ereg_replace(",$group_id,",",",$user[1]); $user_[1] = ereg_replace(",$group_id,",",",$user[1]);
$phpgw->db->query("update accounts set groups='$user[1]' where con='$user[0]'"); if ($user_[1] == ",") {
$user_[1] = "";
}
$phpgw->db->query("update accounts set groups='$user_[1]' where con='$user[0]'");
} }
$confirm = True; $confirm = True;
} }

View File

@ -62,7 +62,7 @@
$basedir = $phpgw_info["server"]["server_root"] . $sep . "filemanager" . $sep $basedir = $phpgw_info["server"]["server_root"] . $sep . "filemanager" . $sep
. "groups" . $sep; . "groups" . $sep;
if (! rename($basedir . $group_name,$basedir . $n_group)) { if (! @rename($basedir . $old_group_name, $basedir . $n_group)) {
$cd = 39; $cd = 39;
} else { } else {
$cd = 33; $cd = 33;

View File

@ -45,6 +45,9 @@
case "installed applications": case "installed applications":
$s = "Installed applications"; break; $s = "Installed applications"; break;
case "remove all users from this group":
$s = "Remove all users from this group"; break;
case "permissions this group has": case "permissions this group has":
$s = "Permissions this group has"; break; $s = "Permissions this group has"; break;