Skip to content

Commit

Permalink
Fix exporting recurring events with no recur_end to CSV.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Feb 10, 2014
1 parent 4a1a64d commit 0d47056
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kronolith/lib/Application.php
Expand Up @@ -609,7 +609,9 @@ public function download(Horde_Variables $vars)

if ($event->recurs()) {
$row['recur_type'] = $event->recurrence->getRecurType();
$row['recur_end_date'] = $event->recurrence->recurEnd->format('Y-m-d');
if ($event->recurrence->hasRecurEnd()) {
$row['recur_end_date'] = $event->recurrence->recurEnd->format('Y-m-d');
}
$row['recur_interval'] = $event->recurrence->getRecurInterval();
$row['recur_data'] = $event->recurrence->recurData;
}
Expand Down

0 comments on commit 0d47056

Please sign in to comment.