calendar merge: only export events that will not break the importer. this will probably dismiss some old experimental entries

(cherry picked from commit 8be0031602)
This commit is contained in:
Mario Vavti
2019-05-15 18:25:59 +02:00
committed by Mario
parent 29c5e74d31
commit 22162635e7
+3 -2
View File
@@ -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 {