mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 17:48:56 +01:00
included missing ) plus ;
This commit is contained in:
parent
b0ae3e54f7
commit
188f7e09c8
@ -42,14 +42,14 @@
|
|||||||
|
|
||||||
$phpgw->db->query("SELECT group_apps FROM groups WHERE group_id=".$group_id,__FILE__,__LINE__);
|
$phpgw->db->query("SELECT group_apps FROM groups WHERE group_id=".$group_id,__FILE__,__LINE__);
|
||||||
$phpgw->db->next_record();
|
$phpgw->db->next_record();
|
||||||
$apps_before = $phpgw->db->f("group_apps")
|
$apps_before = $phpgw->db->f("group_apps");
|
||||||
$phpgw->accounts->add_app($n_group_permissions);
|
$phpgw->accounts->add_app($n_group_permissions);
|
||||||
$apps_after = $phpgw->accounts->add_app("",True);
|
$apps_after = $phpgw->accounts->add_app("",True);
|
||||||
|
|
||||||
if($apps_before <> $apps_after) {
|
if($apps_before <> $apps_after) {
|
||||||
$after_apps = explode(":",$apps_after);
|
$after_apps = explode(":",$apps_after);
|
||||||
for ($i=1;$i<=count($after_apps);$i++) {
|
for ($i=1;$i<=count($after_apps);$i++) {
|
||||||
if (!strpos(" ".$apps_before." ",$after_apps) {
|
if (!strpos(" ".$apps_before." ",$after_apps)) {
|
||||||
$new_apps[] = $after_apps;
|
$new_apps[] = $after_apps;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -75,9 +75,9 @@
|
|||||||
if(is_array($phpgw_newuser)) unset($phpgw_newuser);
|
if(is_array($phpgw_newuser)) unset($phpgw_newuser);
|
||||||
$phpgw->db->query("SELECT preference_value FROM preferences WHERE preference_owner=".$n_users[$i],__FILE__,__LINE__);
|
$phpgw->db->query("SELECT preference_value FROM preferences WHERE preference_owner=".$n_users[$i],__FILE__,__LINE__);
|
||||||
$phpgw->db->next_record();
|
$phpgw->db->next_record();
|
||||||
$phpgw_newuser["user"]["preferences"] = unserialize($phpgw->db->f("preference_value");
|
$phpgw_newuser["user"]["preferences"] = unserialize($phpgw->db->f("preference_value"));
|
||||||
} else {
|
} else {
|
||||||
$phpgw_newuser["user"]["preferences"] = $phpgw_info["user"]["preferences"]
|
$phpgw_newuser["user"]["preferences"] = $phpgw_info["user"]["preferences"];
|
||||||
}
|
}
|
||||||
$docommit = False;
|
$docommit = False;
|
||||||
for ($j=0;$j<count($new_apps);$j++) {
|
for ($j=0;$j<count($new_apps);$j++) {
|
||||||
|
@ -59,8 +59,8 @@
|
|||||||
$phpgw->db->query("SELECT preference_owner, preference_value FROM preferences");
|
$phpgw->db->query("SELECT preference_owner, preference_value FROM preferences");
|
||||||
if($phpgw->db->num_rows()) {
|
if($phpgw->db->num_rows()) {
|
||||||
while($phpgw->db->next_record()) {
|
while($phpgw->db->next_record()) {
|
||||||
if($phpgw->db->f("preference_owner") != $phpgw_info["user"]["account_id"] {
|
if($phpgw->db->f("preference_owner") != $phpgw_info["user"]["account_id"]) {
|
||||||
$phpgw_newuser["user"]["preferences"] = unserialize($phpgw->db->f("preference_value");
|
$phpgw_newuser["user"]["preferences"] = unserialize($phpgw->db->f("preference_value"));
|
||||||
$phpgw->common->hook_single("add_def_pref", $n_app_name);
|
$phpgw->common->hook_single("add_def_pref", $n_app_name);
|
||||||
$phpgw->preferences->commit_user($phpgw->db->f("preference_owner"));
|
$phpgw->preferences->commit_user($phpgw->db->f("preference_owner"));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user