summaryrefslogtreecommitdiff
path: root/php-kolab/Kolab_Filter/issue3192.patch
blob: 249f03a9ddb1aa8b903d0c849c7788e5c4e487bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff -urN Kolab_Filter-0.1.4.orig/lib/Horde/Kolab/Filter/Outlook.php Kolab_Filter-0.1.4/lib/Horde/Kolab/Filter/Outlook.php
--- Kolab_Filter-0.1.4.orig/lib/Horde/Kolab/Filter/Outlook.php	2009-02-24 12:20:50.000000000 +0100
+++ Kolab_Filter-0.1.4/lib/Horde/Kolab/Filter/Outlook.php	2009-03-03 16:44:54.365444005 +0100
@@ -104,7 +104,8 @@
         $iCal->parsevCalendar($icaltxt);
         $vevent =& $iCal->findComponent('VEVENT');
         if ($vevent) {
-            if (!$vevent->organizerName()) {
+            $organizer = $vevent->getAttribute('ORGANIZER', true);
+            if (is_a($organizer, 'PEAR_Error')) {
                 $adrs = imap_rfc822_parse_adrlist($from, $email_domain);
                 if (count($adrs) > 0) {
                     $org_email = 'mailto:'.$adrs[0]->mailbox.'@'.$adrs[0]->host;