]> git.mxchange.org Git - friendica.git/blobdiff - mod/events.php
Fix profile wrong DISTINCT + ORDER BY
[friendica.git] / mod / events.php
index bcf80dd1c75e7cbe13fdf670f6c89b46b120271c..60e7b9f39076bf40c7b361afc05ebe9e987b7d5b 100644 (file)
@@ -53,8 +53,8 @@ function events_post(App $a) {
        // The default setting for the `private` field in event_store() is false, so mirror that
        $private_event = false;
 
-       $start  = '0000-00-00 00:00:00';
-       $finish = '0000-00-00 00:00:00';
+       $start  = NULL_DATE;
+       $finish = NULL_DATE;
 
        if ($start_text) {
                $start = $start_text;
@@ -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.');