Fix syntax error

This commit is contained in:
Laurent Destailleur 2022-11-26 12:20:07 +01:00
parent f71050ebca
commit 507be2b253

View File

@ -1896,7 +1896,7 @@ function show_actions_done($conf, $langs, $db, $filterobj, $objcon = '', $noprin
if (empty($conf->global->AGENDA_USE_EVENT_TYPE) && empty($arraylist[$labeltype])) {
$labeltype = 'AC_OTH';
}
if (preg_mach('/^TICKET_MSG/', $actionstatic->code)) {
if (preg_match('/^TICKET_MSG/', $actionstatic->code)) {
$labeltype = $langs->trans("Message");
} else {
if (!empty($arraylist[$labeltype])) {