X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fevents.php;h=0fdec5cbe4c0f01d1e59bff4fc6418230a8ce6ab;hb=dd0a1cf586fc37fe9a3d84af277c7504136a3bf9;hp=a2f3ec39a45c0bb33d9b9093f43526c0bd778fb7;hpb=0879b46125fe5be9a1c33e4b0881846d2ed136c1;p=friendica.git diff --git a/mod/events.php b/mod/events.php index a2f3ec39a4..0fdec5cbe4 100644 --- a/mod/events.php +++ b/mod/events.php @@ -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.'); @@ -433,7 +436,7 @@ function events_content(App $a) { $sh_checked = (($orig_event['allow_cid'] === '<' . local_user() . '>' && (! $orig_event['allow_gid']) && (! $orig_event['deny_cid']) && (! $orig_event['deny_gid'])) ? '' : ' checked="checked" '); } - if ($cid OR ($mode !== 'new')) { + if ($cid || ($mode !== 'new')) { $sh_checked .= ' disabled="disabled" '; }