From 3a32a328a1bc5ab1997396fb71a90d499ee1bc1a Mon Sep 17 00:00:00 2001 From: Philip Herbert Date: Sun, 27 Mar 2011 20:40:53 +0000 Subject: [PATCH] fixed calendar categories not beeing imported from as clients --- 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 3bcaf49373..fce42c1d58 100644 --- a/calendar/inc/class.calendar_activesync.inc.php +++ b/calendar/inc/class.calendar_activesync.inc.php @@ -479,7 +479,7 @@ class calendar_activesync implements activesync_plugin_write if (isset($message->categories)) { - $event['categories'] = $this->calendar->find_or_add_categories($message->categories, $id); + $event['category'] = implode(',', array_filter($this->calendar->find_or_add_categories($message->categories, $id),'strlen')); } // check if event is recurring and import recur information (incl. timezone)