Merge pull request #381 from mkoch227/bug-fix-ticket-to-tmpvar

Switch from $ticket to $tmpvar
This commit is contained in:
Mike Koch 2015-10-19 20:53:07 -04:00
commit 6f26a3c4a6

View File

@ -299,12 +299,12 @@ function hesk_email2ticket($results, $pop3 = 0, $set_category = 1, $set_priority
$tmpvar[$k] = '';
}
$ticket['latitude'] = NULL;
$ticket['longitude'] = NULL;
$ticket['html'] = 0;
$ticket['user_agent'] = NULL;
$ticket['screen_resolution_width'] = NULL;
$ticket['screen_resolution_height'] = NULL;
$tmpvar['latitude'] = NULL;
$tmpvar['longitude'] = NULL;
$tmpvar['html'] = 0;
$tmpvar['user_agent'] = NULL;
$tmpvar['screen_resolution_width'] = NULL;
$tmpvar['screen_resolution_height'] = NULL;
// Insert ticket to database
$ticket = hesk_newTicket($tmpvar);