possible fix for warnings for preferences

This commit is contained in:
skeeter 2001-01-18 04:55:34 +00:00
parent 71a0a698c9
commit 8c49050e33

View File

@ -26,14 +26,14 @@
$phpgw->db->next_record();
if ($phpgw->db->f(0) != 0) {
$error = "<br>" . lang("Sorry, that group name has already been taking.");
$error = "<br>" . lang("Sorry, that group name has already been taken.");
}
if (! $n_group) {
$error = "<br>" . lang("You must enter a group name.");
}
if (! $error) {
$phpgw->db->lock(array("accounts","groups"));
$phpgw->db->lock(array("accounts","groups","preferences"));
$phpgw->accounts->add_app($n_group_permissions);
$apps = $phpgw->accounts->add_app("",True);
@ -60,10 +60,11 @@
$docommit = False;
for ($j=0;$j<count($new_apps);$j++) {
if($new_apps[$j]=="admin")
if($new_apps[$j]=="admin") {
$check = "common";
else
} else {
$check = $new_apps[$j];
}
if (!$t["$check"]) {
$phpgw->common->hook_single("add_def_pref", $new_apps[$j]);
$docommit = True;