diff --git a/index.php b/index.php index 0ceeb3a3..a587cf40 100644 --- a/index.php +++ b/index.php @@ -1121,6 +1121,8 @@ function print_add_ticket() + + diff --git a/submit_ticket.php b/submit_ticket.php index d064f2dd..e069cd41 100644 --- a/submit_ticket.php +++ b/submit_ticket.php @@ -364,8 +364,8 @@ $tmpvar['longitude'] = hesk_POST('longitude'); $tmpvar['html'] = $modsForHesk_settings['rich_text_for_tickets_for_customers']; // Set screen res and user agent -$tmpvar['screen_resolution_height'] = hesk_POST('screen_resolution_height'); -$tmpvar['screen_resolution_width'] = hesk_POST('screen_resolution_width'); +$tmpvar['screen_resolution_height'] = hesk_POST('screen_resolution_height', NULL); +$tmpvar['screen_resolution_width'] = hesk_POST('screen_resolution_width', NULL); $tmpvar['user_agent'] = $_SERVER['HTTP_USER_AGENT']; // Should the helpdesk validate emails?