forked from extern/egroupware
Changed to match the class changes - look ok, skeeter?
This commit is contained in:
parent
878fc90478
commit
362a867c95
@ -28,19 +28,21 @@
|
|||||||
if (! $totalerrors) {
|
if (! $totalerrors) {
|
||||||
while (list($pref[0]) = each($this->stock_contact_fields)) {
|
while (list($pref[0]) = each($this->stock_contact_fields)) {
|
||||||
if ($ab_selected["$pref[0]"]) {
|
if ($ab_selected["$pref[0]"]) {
|
||||||
$phpgw->preferences->change("addressbook",$pref[0],"addressbook_" . $ab_selected["$pref[0]"]);
|
$phpgw->preferences->delete("addressbook",$pref[0],"addressbook_" . $ab_selected["$pref[0]"]);
|
||||||
|
$phpgw->preferences->add("addressbook",$pref[0],"addressbook_" . $ab_selected["$pref[0]"]);
|
||||||
} else {
|
} else {
|
||||||
$phpgw->preferences->delete("addressbook",$pref[0],"addressbook_" . $ab_selected["$pref[0]"]);
|
$phpgw->preferences->delete("addressbook",$pref[0],"addressbook_" . $ab_selected["$pref[0]"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($mainscreen_showbirthdays) {
|
if ($mainscreen_showbirthdays) {
|
||||||
$phpgw->preferences->change("addressbook","mainscreen_showbirthdays");
|
$phpgw->preferences->delete("addressbook","mainscreen_showbirthdays");
|
||||||
|
$phpgw->preferences->add("addressbook","mainscreen_showbirthdays");
|
||||||
} else {
|
} else {
|
||||||
$phpgw->preferences->delete("addressbook","mainscreen_showbirthdays");
|
$phpgw->preferences->delete("addressbook","mainscreen_showbirthdays");
|
||||||
}
|
}
|
||||||
|
|
||||||
$phpgw->preferences->commit();
|
$phpgw->preferences->save_repository();
|
||||||
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/preferences/index.php"));
|
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/preferences/index.php"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user