From autoassign? $getOwnerRs = hesk_dbQuery("SELECT * FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "users` WHERE ID = " . intval($ticket['owner'])); $autoassign_owner = hesk_dbFetchAssoc($getOwnerRs); if ($ticket['owner'] && $autoassign_owner['notify_assigned']) { hesk_notifyAssignedStaff($autoassign_owner, 'ticket_assigned_to_you', $modsForHesk_settings); } // --> No autoassign, find and notify appropriate staff elseif (!$ticket['owner']) { hesk_notifyStaff('new_ticket_staff', " `notify_new_unassigned` = '1' ", $modsForHesk_settings); } array_push($submittedTickets, $innerResult['trackid']); hesk_dbQuery("DELETE FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "stage_tickets` WHERE `id` = " . $innerResult['id']); } //Add email address to the verified emails table hesk_dbQuery('INSERT INTO `' . hesk_dbEscape($hesk_settings['db_pfix']) . 'verified_emails` (`Email`) VALUES (\'' . hesk_dbEscape($email) . '\')'); } hesk_dbQuery("DELETE FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "pending_verification_emails` WHERE `ActivationKey` = '" . hesk_dbEscape($key) . "'"); //-- was there an email recorded for the key? if (!empty($email)) { $showForm = false; ?>

    ' . $ticket . ''; } if (count($submittedTickets) == 0) { echo '
  • ' . $hesklang['no_tickets_created'] . '
  • '; } ?>