From c6a2f7fcffd5240c6d4f562eeb50836a2c6da8f1 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Wed, 30 Nov 2016 13:21:03 -0500 Subject: [PATCH] Fix undefined index when submitting ticket as customer --- submit_ticket.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/submit_ticket.php b/submit_ticket.php index e3d641d2..00fafb1b 100644 --- a/submit_ticket.php +++ b/submit_ticket.php @@ -434,6 +434,9 @@ $tmpvar['screen_resolution_height'] = hesk_POST('screen_resolution_height', "NUL $tmpvar['screen_resolution_width'] = hesk_POST('screen_resolution_width', "NULL"); $tmpvar['user_agent'] = $_SERVER['HTTP_USER_AGENT']; +// Tickets from customers never have a due date +$tmpvar['due_date'] = ''; + // Should the helpdesk validate emails? $createTicket = true; if ($modsForHesk_settings['customer_email_verification_required'] && $email_available) {