Skip to content

Commit

Permalink
fix projet/messaging.php warnings (#31869)
Browse files Browse the repository at this point in the history
Co-authored-by: Hystepik <lmarcouiller@nltechno.com>
  • Loading branch information
Hystepik and Hystepik authored Nov 15, 2024
1 parent 0cb9fe1 commit 6f6997a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/core/lib/functions.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -14696,9 +14696,9 @@ function show_actions_messaging($conf, $langs, $db, $filterobj, $objcon = null,
}

$libelle = '';
if (preg_match('/^TICKET_MSG/', $actionstatic->code)) {
if (!empty($actionstatic->code) && preg_match('/^TICKET_MSG/', $actionstatic->code)) {
$out .= $langs->trans('TicketNewMessage');
} elseif (preg_match('/^TICKET_MSG_PRIVATE/', $actionstatic->code)) {
} elseif (!empty($actionstatic->code) && preg_match('/^TICKET_MSG_PRIVATE/', $actionstatic->code)) {
$out .= $langs->trans('TicketNewMessage').' <em>('.$langs->trans('Private').')</em>';
} elseif (isset($histo[$key]['type'])) {
if ($histo[$key]['type'] == 'action') {
Expand Down

0 comments on commit 6f6997a

Please sign in to comment.