diff --git a/admin/admin_submit_ticket.php b/admin/admin_submit_ticket.php
index 957275df..ab8e36d1 100644
--- a/admin/admin_submit_ticket.php
+++ b/admin/admin_submit_ticket.php
@@ -234,8 +234,8 @@ $tmpvar['html'] = $modsForHesk_settings['rich_text_for_tickets'];
// Set user agent and screen res to null
$tmpvar['user_agent'] = NULL;
-$tmpvar['screen_resolution_height'] = NULL;
-$tmpvar['screen_resolution_width'] = NULL;
+$tmpvar['screen_resolution_height'] = "NULL";
+$tmpvar['screen_resolution_width'] = "NULL";
// Insert ticket to database
$ticket = hesk_newTicket($tmpvar);
diff --git a/inc/pipe_functions.inc.php b/inc/pipe_functions.inc.php
index 3952fe12..8b7ee1c2 100755
--- a/inc/pipe_functions.inc.php
+++ b/inc/pipe_functions.inc.php
@@ -304,8 +304,8 @@ function hesk_email2ticket($results, $pop3 = 0, $set_category = 1, $set_priority
$tmpvar['longitude'] = NULL;
$tmpvar['html'] = 0;
$tmpvar['user_agent'] = NULL;
- $tmpvar['screen_resolution_width'] = NULL;
- $tmpvar['screen_resolution_height'] = NULL;
+ $tmpvar['screen_resolution_width'] = "NULL";
+ $tmpvar['screen_resolution_height'] = "NULL";
// Insert ticket to database
$ticket = hesk_newTicket($tmpvar);
diff --git a/inc/posting_functions.inc.php b/inc/posting_functions.inc.php
index bc4559d7..1c13b245 100644
--- a/inc/posting_functions.inc.php
+++ b/inc/posting_functions.inc.php
@@ -147,8 +147,8 @@ function hesk_newTicket($ticket, $isVerified = true)
'" . hesk_dbEscape($ticket['longitude']) . "',
'" . hesk_dbEscape($ticket['html']) . "',
'" . hesk_dbEscape($ticket['user_agent']) . "',
- '" . hesk_dbEscape($ticket['screen_resolution_height']) . "',
- '" . hesk_dbEscape($ticket['screen_resolution_width']) . "'
+ " . hesk_dbEscape($ticket['screen_resolution_height']) . ",
+ " . hesk_dbEscape($ticket['screen_resolution_width']) . "
)
");
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..14c38b04 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?