From b9bcbdb06a8b6c211acdf83c79fbff46edaf1628 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Wed, 7 Feb 2001 13:47:52 +0000 Subject: [PATCH] Add read_repository --- addressbook/preferences.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addressbook/preferences.php b/addressbook/preferences.php index 866007dbfe..7a234db387 100644 --- a/addressbook/preferences.php +++ b/addressbook/preferences.php @@ -26,17 +26,17 @@ $errors[$totalerrors++] = lang("You must select at least 1 column to display"); } if (! $totalerrors) { + $phpgw->preferences->read_repository(); while (list($pref[0]) = each($this->stock_contact_fields)) { if ($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]"]); + $phpgw->preferences->change("addressbook",$pref[0],"addressbook_" . $ab_selected["$pref[0]"]); } else { $phpgw->preferences->delete("addressbook",$pref[0],"addressbook_" . $ab_selected["$pref[0]"]); } } if ($mainscreen_showbirthdays) { - $phpgw->preferences->delete("addressbook","mainscreen_showbirthdays"); + $phpgw->preferences->delete("addressbook","mainscreen_showbirthdays"); $phpgw->preferences->add("addressbook","mainscreen_showbirthdays"); } else { $phpgw->preferences->delete("addressbook","mainscreen_showbirthdays");