mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
deletegroup.php is now working a little better
This commit is contained in:
parent
6ea710b2c8
commit
0fe690d6ec
@ -27,8 +27,11 @@
|
||||
}
|
||||
|
||||
while ($user = each($groups)) {
|
||||
$user[1] = ereg_replace(",$group_id,",",",$user[1]);
|
||||
$phpgw->db->query("update accounts set groups='$user[1]' where con='$user[0]'");
|
||||
$user_[1] = ereg_replace(",$group_id,",",",$user[1]);
|
||||
if ($user_[1] == ",") {
|
||||
$user_[1] = "";
|
||||
}
|
||||
$phpgw->db->query("update accounts set groups='$user_[1]' where con='$user[0]'");
|
||||
}
|
||||
$confirm = True;
|
||||
}
|
||||
|
@ -62,7 +62,7 @@
|
||||
$basedir = $phpgw_info["server"]["server_root"] . $sep . "filemanager" . $sep
|
||||
. "groups" . $sep;
|
||||
|
||||
if (! rename($basedir . $group_name,$basedir . $n_group)) {
|
||||
if (! @rename($basedir . $old_group_name, $basedir . $n_group)) {
|
||||
$cd = 39;
|
||||
} else {
|
||||
$cd = 33;
|
||||
|
@ -45,6 +45,9 @@
|
||||
case "installed applications":
|
||||
$s = "Installed applications"; break;
|
||||
|
||||
case "remove all users from this group":
|
||||
$s = "Remove all users from this group"; break;
|
||||
|
||||
case "permissions this group has":
|
||||
$s = "Permissions this group has"; break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user