diff --git a/admin/admin_ticket.php b/admin/admin_ticket.php index 79d58367..89f2fc8c 100644 --- a/admin/admin_ticket.php +++ b/admin/admin_ticket.php @@ -1587,7 +1587,7 @@ function hesk_getAdminButtonsInTicket($reply = 0, $white = 1) { global $hesk_settings, $hesklang, $ticket, $reply, $trackingID, $can_edit, $can_archive, $can_delete, $isManager; - $options = '
'; + $options = $reply ? '' : '
'; /* Edit post */ if ($can_edit) { @@ -1612,7 +1612,7 @@ function hesk_getAdminButtonsInTicket($reply = 0, $white = 1) } /* Return generated HTML */ - $options .= '
'; + $options .= $reply ? '' : '
'; return $options; } // END hesk_getAdminButtonsInTicket() @@ -1665,38 +1665,45 @@ function hesk_printTicketReplies() { global $hesklang, $hesk_settings, $result, $reply, $isManager, $modsForHesk_settings; - $i = $hesk_settings['new_top'] ? 0 : 1; - if ($reply === false) { - return $i; + return; } + echo '