summaryrefslogtreecommitdiff
path: root/plugins/libcalendaring/libvcalendar.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/libcalendaring/libvcalendar.php')
-rw-r--r--plugins/libcalendaring/libvcalendar.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/libcalendaring/libvcalendar.php b/plugins/libcalendaring/libvcalendar.php
index b040bde..0dad1aa 100644
--- a/plugins/libcalendaring/libvcalendar.php
+++ b/plugins/libcalendaring/libvcalendar.php
@@ -908,11 +908,11 @@ class libvcalendar implements Iterator
continue; // no timezone information found
}
- if ($vcal) {
- $vcal->add($vt);
+ if ($write) {
+ echo $vt->serialize();
}
else {
- echo $vt->serialize();
+ $vcal->add($vt);
}
}
}