From 4cda10552eef35eb7678a66eace5f963136d1339 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 5 Jan 2012 11:50:46 +0000 Subject: [PATCH] addressbook/esync: make sure private is set (with 0 or 1); as an contact_private set to NULL within the database is invisible to the users --- addressbook/inc/class.addressbook_activesync.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_activesync.inc.php b/addressbook/inc/class.addressbook_activesync.inc.php index dc1cf7cd39..d5c82545d3 100644 --- a/addressbook/inc/class.addressbook_activesync.inc.php +++ b/addressbook/inc/class.addressbook_activesync.inc.php @@ -583,10 +583,11 @@ class addressbook_activesync implements activesync_plugin_write, activesync_plug } // for all-in-one addressbook, account is meaningless and wrong! // addressbook_bo::save() keeps the owner or sets an appropriate one if none given + if (!isset($contact['private'])) $contact['private'] = (int)$is_private; if (!$GLOBALS['egw_info']['user']['preferences']['activesync']['addressbook-all-in-one']) { $contact['owner'] = $account; - $contact['private'] = $is_private; + $contact['private'] = (int)$is_private; } if (!empty($id)) $contact['id'] = $id; $this->addressbook->fixup_contact($contact);