From c9cd0f4ce4d6f52dcf3f3d92b1a86391a3a81981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Lehrke?= Date: Wed, 14 Apr 2010 16:40:19 +0000 Subject: [PATCH] Fix SyncML preferences --- addressbook/inc/class.addressbook_sif.inc.php | 1 + addressbook/inc/class.addressbook_vcal.inc.php | 1 + calendar/inc/class.calendar_ical.inc.php | 10 ++++++---- calendar/inc/class.calendar_sif.inc.php | 10 ++++++---- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/addressbook/inc/class.addressbook_sif.inc.php b/addressbook/inc/class.addressbook_sif.inc.php index 1e0f4ed146..9405726f7e 100644 --- a/addressbook/inc/class.addressbook_sif.inc.php +++ b/addressbook/inc/class.addressbook_sif.inc.php @@ -256,6 +256,7 @@ class addressbook_sif extends addressbook_bo $contact['owner'] = $GLOBALS['egw_info']['user']['account_primary_group']; break; case 'P': + case 'N': case 0: $contact['owner'] = $this->user; break; diff --git a/addressbook/inc/class.addressbook_vcal.inc.php b/addressbook/inc/class.addressbook_vcal.inc.php index 5deb2368dd..fc4aef80da 100644 --- a/addressbook/inc/class.addressbook_vcal.inc.php +++ b/addressbook/inc/class.addressbook_vcal.inc.php @@ -177,6 +177,7 @@ class addressbook_vcal extends addressbook_bo $contact['owner'] = $GLOBALS['egw_info']['user']['account_primary_group']; break; case 'P': + case 'N': case 0: $contact['owner'] = $this->user; break; diff --git a/calendar/inc/class.calendar_ical.inc.php b/calendar/inc/class.calendar_ical.inc.php index eba8c68fa0..15f1a01cc0 100644 --- a/calendar/inc/class.calendar_ical.inc.php +++ b/calendar/inc/class.calendar_ical.inc.php @@ -1669,12 +1669,14 @@ class calendar_ical extends calendar_boupdate { case 'G': case 'P': + case 0: $owner = $this->user; break; - } - if (0 < (int)$owner && $this->check_perms(EGW_ACL_EDIT, 0, $owner)) - { - $this->calendarOwner = $owner; + default: + if ((int)$owner && $this->check_perms(EGW_ACL_EDIT, 0, $owner)) + { + $this->calendarOwner = $owner; + } } } if (!isset($this->productManufacturer) || diff --git a/calendar/inc/class.calendar_sif.inc.php b/calendar/inc/class.calendar_sif.inc.php index eda6c7121a..66e032171a 100644 --- a/calendar/inc/class.calendar_sif.inc.php +++ b/calendar/inc/class.calendar_sif.inc.php @@ -1015,12 +1015,14 @@ class calendar_sif extends calendar_boupdate { case 'G': case 'P': + case 0: $owner = $this->user; break; - } - if (0 < (int)$owner && $this->check_perms(EGW_ACL_EDIT, 0, $owner)) - { - $this->calendarOwner = $owner; + default: + if ((int)$owner && $this->check_perms(EGW_ACL_EDIT, 0, $owner)) + { + $this->calendarOwner = $owner; + } } } }