diff --git a/htdocs/core/class/html.formticket.class.php b/htdocs/core/class/html.formticket.class.php index cb5a1aacc0f..c83becab676 100644 --- a/htdocs/core/class/html.formticket.class.php +++ b/htdocs/core/class/html.formticket.class.php @@ -1363,8 +1363,8 @@ class FormTicket }'; // If constant set, allow to send private messages as email - if (empty($conf->global->TICKET_SEND_PRIVATE_EMAIL)) { - print 'jQuery("#send_msg_email").click(function() { + if (empty($conf->global->TICKET_SEND_PRIVATE_EMAIL)) { + print 'jQuery("#send_msg_email").click(function() { if(jQuery(this).is(":checked")) { if (jQuery("#private_message").is(":checked")) { jQuery("#private_message").prop("checked", false).trigger("change"); @@ -1384,12 +1384,12 @@ class FormTicket jQuery(".email_line").hide(); } });'; - } + } print '}); '; - - + + print '