diff --git a/user/post/event_model.php b/user/post/event_model.php index a2719953..2d238c7b 100644 --- a/user/post/event_model.php +++ b/user/post/event_model.php @@ -7,6 +7,6 @@ $location = sanitizeInput($_POST['location']); $description = sanitizeInput($_POST['description']); $start = sanitizeInput($_POST['start']); $end = sanitizeInput($_POST['end']); -$repeat = sanitizeInput($_POST['repeat']); +$repeat = sanitizeInput($_POST['repeat'] ?? 0); $client = intval($_POST['client']); -$email_event = intval($_POST['email_event']); +$email_event = intval($_POST['email_event'] ?? 0);