1
0
Fork 0

add missed NULL_DATE

This commit is contained in:
rabuzarus 2017-03-20 17:19:24 +01:00
parent d1d33dc79a
commit 0557a42e2f

View file

@ -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.');