From e24ec04a7564cd86565e5e0288506fcfd50e9502 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 5 Aug 2025 18:39:24 -0400 Subject: [PATCH] Fix Post errors when repeat and Email Event is not selected --- user/post/event_model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);