From bb57fb3a93d4086e90146ef5491b63bb1d43423a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 16 Mar 2024 15:37:38 +0100 Subject: [PATCH] Update view.php --- htdocs/public/ticket/view.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/public/ticket/view.php b/htdocs/public/ticket/view.php index d1114d541ed..3e22e3a81bb 100644 --- a/htdocs/public/ticket/view.php +++ b/htdocs/public/ticket/view.php @@ -221,7 +221,7 @@ $formticket = new FormTicket($db); // Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context $hookmanager->initHooks(array('ticketpublicview', 'globalcard')); -if (empty(getDolGlobalString('TICKET_ENABLE_PUBLIC_INTERFACE'))) { +if (!getDolGlobalString('TICKET_ENABLE_PUBLIC_INTERFACE')) { print '
'.$langs->trans('TicketPublicInterfaceForbidden').'
'; $db->close(); exit(); @@ -331,7 +331,7 @@ if ($action == "view_ticket" || $action == "presend" || $action == "close" || $a print ''; // Progression - if (!empty(getDolGlobalString('TICKET_SHOW_PROGRESSION'))) { + if (getDolGlobalString('TICKET_SHOW_PROGRESSION')) { print ''.$langs->trans("Progression").''; print ($object->dao->progress > 0 ? dol_escape_htmltag($object->dao->progress) : '0').'%'; print '';