Fix setting sensitivity on AS exception messages.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 7 Aug 2010 04:49:06 +0000 (00:49 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 7 Aug 2010 04:49:31 +0000 (00:49 -0400)
kronolith/lib/Event.php

index 535a7fa..4c3780f 100644 (file)
@@ -1326,7 +1326,10 @@ abstract class Kronolith_Event
                         $e->setLocation(Horde_String::convertCharset($exception->location, $charset, 'utf-8'));
                         $e->setBody(Horde_String::convertCharset($exception->description, $charset, 'utf-8'));
 
-                        $e->setSensitivity($exception->private ? 'private' : 'normal');
+                        $e->setSensitivity($exception->private ?
+                            Horde_ActiveSync_Message_Appointment::SENSITIVITY_PRIVATE :
+                            Horde_ActiveSync_Message_Appointment::SENSITIVITY_NORMAL);
+
                         $e->setReminder($exception->alarm);
                         $e->setDTStamp($_SERVER['REQUEST_TIME']);
                         /* Response Status */