From a21129a11dbbc658039ea81425a9b8a3baaa019a Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Wed, 21 Oct 2015 22:01:30 -0400 Subject: [PATCH] Closes #383 Fix screen res on index page --- index.php | 2 ++ submit_ticket.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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?