Skip events that don't fit into the selected time range

This commit is contained in:
Nathan Gray 2011-04-18 19:25:23 +00:00
parent dd9d78d29a
commit 34e915876d

View File

@ -65,6 +65,9 @@ class calendar_export_csv implements importexport_iface_export_plugin {
// support other selectors atm.
$record = new calendar_egw_record();
foreach ($events as $event) {
// Get rid of yearly recurring events that don't belong
if($event['start'] > $query['end'] || $event['end'] < $query['start']) continue;
// Add in participants
if($options['mapping']['participants']) {
$event['participants'] = implode(", ",$this->bo->participants($event,true));