Branch 'roundcubemail-plugins-kolab-3.1' - plugins/libcalendaring
Thomas Brüderli
bruederli at kolabsys.com
Wed Mar 19 11:13:56 CET 2014
plugins/libcalendaring/libvcalendar.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit da6861ca9b861768860ff1e8b9196b38bd57001d
Author: Thomas Bruederli <bruederli at kolabsys.com>
Date: Wed Mar 19 11:10:33 2014 +0100
Suppress property parameters with empty values
diff --git a/plugins/libcalendaring/libvcalendar.php b/plugins/libcalendaring/libvcalendar.php
index d07c001..ec8bb80 100644
--- a/plugins/libcalendaring/libvcalendar.php
+++ b/plugins/libcalendaring/libvcalendar.php
@@ -958,7 +958,7 @@ class libvcalendar implements Iterator
}
else if (!empty($attendee['email'])) {
$attendee['rsvp'] = $attendee['rsvp'] ? 'TRUE' : null;
- $ve->add('ATTENDEE', 'mailto:' . $attendee['email'], self::map_keys($attendee, $this->attendee_keymap));
+ $ve->add('ATTENDEE', 'mailto:' . $attendee['email'], array_filter(self::map_keys($attendee, $this->attendee_keymap)));
}
}
@@ -989,7 +989,7 @@ class libvcalendar implements Iterator
// embed attachments for iCal
$ve->add('ATTACH',
base64_encode($data),
- array('VALUE' => 'BINARY', 'ENCODING' => 'BASE64', 'FMTTYPE' => $attach['mimetype'], 'X-LABEL' => $attach['name']));
+ array_filter(array('VALUE' => 'BINARY', 'ENCODING' => 'BASE64', 'FMTTYPE' => $attach['mimetype'], 'X-LABEL' => $attach['name'])));
unset($data); // attempt to free memory
}
// list attachments as absolute URIs
More information about the commits
mailing list