From 0ca42fe9ac7c8e893cd6d72eb470cbd22c6e79d1 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Fri, 25 Jan 2008 12:57:13 +0000 Subject: [PATCH] fixed a bug in addressbook regarding the adding of adresses to the adressbook configured in preferences --- addressbook/inc/class.bocontacts.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addressbook/inc/class.bocontacts.inc.php b/addressbook/inc/class.bocontacts.inc.php index b580b19e0b..97e0ec773b 100755 --- a/addressbook/inc/class.bocontacts.inc.php +++ b/addressbook/inc/class.bocontacts.inc.php @@ -135,9 +135,9 @@ class bocontacts extends socontacts $this->prefs =& $GLOBALS['egw_info']['user']['preferences']['addressbook']; // get the default addressbook from the users prefs - $this->default_private = substr($GLOBALS['egw_info']['user']['preferences']['addressbook'],-1) == 'p'; - $this->default_addressbook = $GLOBALS['egw_info']['user']['preferences']['addressbook'] ? - (int)$GLOBALS['egw_info']['user']['preferences']['addressbook'] : $this->user; + $this->default_addressbook = $GLOBALS['egw_info']['user']['preferences']['addressbook']['add_default'] ? + (int)$GLOBALS['egw_info']['user']['preferences']['addressbook']['add_default'] : $this->user; + $this->default_private = substr($GLOBALS['egw_info']['user']['preferences']['addressbook']['add_default'],-1) == 'p'; if ($this->default_addressbook > 0 && $this->default_addressbook != $this->user && ($this->default_private || $this->default_addressbook == (int)$GLOBALS['egw']->preferences->forced['addressbook']['add_default']) ||