From 0eefd8414fa1c39e803e985ba85b8c7251f67cdb Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 18 Mar 2015 12:59:39 +0100 Subject: [PATCH] Fix VTIMEZONE export in non-buffered mode (#4865) --- plugins/libcalendaring/libvcalendar.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/libcalendaring/libvcalendar.php b/plugins/libcalendaring/libvcalendar.php index b040bdef..0dad1aac 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); } } }