From 448241f5962903e778a9b3cd804b1fdf201261d7 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 23 Jul 2014 12:39:10 +0000 Subject: [PATCH] need to check type, not account_id to detected "default" or "forced" prefs --- calendar/inc/class.calendar_activesync.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_activesync.inc.php b/calendar/inc/class.calendar_activesync.inc.php index f7127bce8d..28d7b2b43e 100644 --- a/calendar/inc/class.calendar_activesync.inc.php +++ b/calendar/inc/class.calendar_activesync.inc.php @@ -1576,7 +1576,7 @@ END:VTIMEZONE function settings($hook_data) { $cals = array(); - if (!$hook_data['setup'] && is_numeric($hook_data['account_id'])) + if (!$hook_data['setup'] && in_array($hook_data['type'], array('user', 'group'))) { foreach (calendar_bo::list_calendars($hook_data['account_id']) as $entry) {