diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php index eeaa81a2d48..e3923cfb8d0 100644 --- a/htdocs/comm/action/card.php +++ b/htdocs/comm/action/card.php @@ -535,8 +535,8 @@ if (empty($reshook) && $action == 'update') { $datef = dol_mktime($fulldayevent ? '23' : GETPOST("p2hour", 'int'), $fulldayevent ? '59' : GETPOST("p2min", 'int'), $fulldayevent ? '59' : GETPOST("apsec", 'int'), GETPOST("p2month", 'int'), GETPOST("p2day", 'int'), GETPOST("p2year", 'int'), 'tzuser'); } - if($object->elementtype == 'ticket'){ - if($private){ + if ($object->elementtype == 'ticket') { + if ($private) { $object->type_code = 'TICKET_MSG_PRIVATE'; } else { $object->type_id = dol_getIdFromCode($db, 'AC_EMAIL', 'c_actioncomm'); @@ -1542,7 +1542,7 @@ if ($id > 0) { } // Private - if($object->elementtype == 'ticket') print '