From 0557a42e2f6fa18d4a3a3b9be07d10d02501f296 Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Mon, 20 Mar 2017 17:19:24 +0100 Subject: [PATCH] add missed NULL_DATE --- mod/events.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/events.php b/mod/events.php index a2f3ec39a..60e7b9f39 100644 --- a/mod/events.php +++ b/mod/events.php @@ -98,7 +98,7 @@ function events_post(App $a) { goaway($onerror_url); } - if ((! $summary) || ($start === '0000-00-00 00:00:00')) { + if ((! $summary) || ($start === NULL_DATE)) { notice(t('Event title and start time are required.') . EOL); if (intval($_REQUEST['preview'])) { echo t('Event title and start time are required.');