Unbreak attendee parsing.
authorJan Schneider <jan@horde.org>
Thu, 18 Nov 2010 15:43:05 +0000 (16:43 +0100)
committerJan Schneider <jan@horde.org>
Thu, 18 Nov 2010 15:43:05 +0000 (16:43 +0100)
kronolith/lib/Event.php

index 30a3566..0f5db1a 100644 (file)
@@ -2093,9 +2093,14 @@ abstract class Kronolith_Event
         $this->status = Horde_Util::getFormData('status', $this->status);
 
         // Attendees.
-        $this->attendees = ($attendees = Horde_Util::getFormData('attendees'))
-            ? $attendees
-            : $session->get('kronolith', 'attendees', Horde_Session::TYPE_ARRAY);
+        if ($attendees = Horde_Util::getFormData('attendees')) {
+            $attendees = Kronolith::parseAttendees(trim($attendees));
+        } else {
+            $attendees = $session->get('kronolith', 'attendees', Horde_Session::TYPE_ARRAY);
+        }
+        if ($attendees) {
+            $this->attendees = $attendees;
+        }
 
         // Resources
         $this->_resources = $session->get('kronolith', 'resources', Horde_Session::TYPE_ARRAY);