summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2015-03-18 11:59:39 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2015-03-18 11:59:39 (GMT)
commit0eefd8414fa1c39e803e985ba85b8c7251f67cdb (patch)
treedec69b0d8f0e231e019747963259ec5e29618c32
parent6bd0bdabb540e43463342f94d62c63bd32bc68e9 (diff)
downloadroundcubemail-plugins-kolab-0eefd8414fa1c39e803e985ba85b8c7251f67cdb.tar.gz
Fix VTIMEZONE export in non-buffered mode (#4865)
-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);
}
}
}