|
|
|
@ -33,7 +33,7 @@
|
|
|
|
|
*******************************************************************************/
|
|
|
|
|
|
|
|
|
|
/* Check if this is a valid include */
|
|
|
|
|
if (!defined('IN_SCRIPT')) {die('Invalid attempt');}
|
|
|
|
|
if (!defined('IN_SCRIPT')) {die('Invalid attempt');}
|
|
|
|
|
|
|
|
|
|
/*** FUNCTIONS ***/
|
|
|
|
|
|
|
|
|
@ -54,6 +54,8 @@ function hesk_newTicket($ticket, $isVerified = true)
|
|
|
|
|
$ticket['status'] = $defaultNewTicket['ID'];
|
|
|
|
|
$tableName = $isVerified ? 'tickets' : 'stage_tickets';
|
|
|
|
|
|
|
|
|
|
$ticket['message'] = htmLawed($ticket['message'], array('safe' => 1, 'deny_attribute'=>'style'));
|
|
|
|
|
|
|
|
|
|
// Insert ticket into database
|
|
|
|
|
hesk_dbQuery("
|
|
|
|
|
INSERT INTO `".hesk_dbEscape($hesk_settings['db_pfix']).$tableName."`
|
|
|
|
|