@@ 457-460 (lines=4) @@ | ||
454 | { |
|
455 | trigger_error($this->user->lang['ACP_PORTAL_CALENDAR_START_INCORRECT']. adm_back_link($u_action), E_USER_WARNING); |
|
456 | } |
|
457 | else if (!$event_all_day && !$end_time) |
|
458 | { |
|
459 | trigger_error($this->user->lang['ACP_PORTAL_CALENDAR_END_INCORRECT']. adm_back_link($u_action), E_USER_WARNING); |
|
460 | } |
|
461 | ||
462 | if (($end_time) <= time() && !(($start_time + self::TIME_DAY) >= time() && $event_all_day)) |
|
463 | { |
|
@@ 466-469 (lines=4) @@ | ||
463 | { |
|
464 | trigger_error($this->user->lang['ACP_PORTAL_CALENDAR_EVENT_PAST']. adm_back_link($u_action), E_USER_WARNING); |
|
465 | } |
|
466 | else if ($end_time < $start_time && !$event_all_day) |
|
467 | { |
|
468 | trigger_error($this->user->lang['ACP_PORTAL_CALENDAR_EVENT_START_FIRST']. adm_back_link($u_action), E_USER_WARNING); |
|
469 | } |
|
470 | ||
471 | // get groups and check if the selected groups actually exist |
|
472 | $sql = 'SELECT group_id |