]> git.mxchange.org Git - friendica.git/blobdiff - mod/events.php
Merge pull request #3448 from annando/1705-dba-functions
[friendica.git] / mod / events.php
index a2f3ec39a45c0bb33d9b9093f43526c0bd778fb7..876727608d033937ea542cefcd79570b3188d11b 100644 (file)
@@ -3,6 +3,9 @@
  * @file mod/events.php
  * @brief The events module
  */
+
+use Friendica\App;
+
 require_once 'include/bbcode.php';
 require_once 'include/datetime.php';
 require_once 'include/event.php';
@@ -98,7 +101,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.');