aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-05-15 16:21:52 +0000
committerMario <mario@mariovavti.com>2019-05-15 18:25:59 +0200
commit22162635e75644ccd244ad646ed0484c5710e7a9 (patch)
tree8b4fe65c33422b984298e1a42859d8ad325cd831
parent29c5e74d3103a200470d799d6542a85a7a46c7d0 (diff)
downloadvolse-hubzilla-22162635e75644ccd244ad646ed0484c5710e7a9.tar.gz
volse-hubzilla-22162635e75644ccd244ad646ed0484c5710e7a9.tar.bz2
volse-hubzilla-22162635e75644ccd244ad646ed0484c5710e7a9.zip
calendar merge: only export events that will not break the importer. this will probably dismiss some old experimental entries
(cherry picked from commit 8be00316025efc424a7b38ab5a2542dd5d1e9fd0)
-rw-r--r--Zotlabs/Module/Channel_calendar.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Channel_calendar.php b/Zotlabs/Module/Channel_calendar.php
index e513a7f6e..9229e6eb2 100644
--- a/Zotlabs/Module/Channel_calendar.php
+++ b/Zotlabs/Module/Channel_calendar.php
@@ -335,8 +335,9 @@ class Channel_calendar extends \Zotlabs\Web\Controller {
);
}
elseif($export) {
- $r = q("SELECT * from event where uid = %d",
- intval(local_channel())
+ $r = q("SELECT * from event where uid = %d and dtstart > '%s' and dtend > dtstart",
+ intval(local_channel()),
+ dbesc(NULL_DATE)
);
}
else {