diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php
index 9ab1cf3366a..46c42bff6ad 100644
--- a/htdocs/comm/action/card.php
+++ b/htdocs/comm/action/card.php
@@ -388,13 +388,12 @@ if (empty($reshook) && $action == 'add')
if ($user->id != $object->userownerid) $moreparam = "filtert=-1"; // We force to remove filter so created record is visible when going back to per user view.
//Create eminder
- if($addreminder == 'on'){
-
+ if ($addreminder == 'on'){
$actionCommReminder = new ActionCommReminder($db);
- if($offsetunit == 'minute'){
+ if ($offsetunit == 'minute'){
$dateremind = dol_time_plus_duree($datep, -$offsetvalue, 'i');
- } elseif($offsetunit == 'hour'){
+ } elseif ($offsetunit == 'hour'){
$dateremind = dol_time_plus_duree($datep, -$offsetvalue, 'h');
} elseif ($offsetunit == 'day') {
$dateremind = dol_time_plus_duree($datep, -$offsetvalue, 'd');
@@ -413,11 +412,11 @@ if (empty($reshook) && $action == 'add')
$actionCommReminder->offsetvalue = $offsetvalue;
$actionCommReminder->status = $actionCommReminder::STATUS_TODO;
$actionCommReminder->fk_actioncomm = $object->id;
- if($remindertype == 'email') $actionCommReminder->fk_email_template = $modelmail;
+ if ($remindertype == 'email') $actionCommReminder->fk_email_template = $modelmail;
$res = $actionCommReminder->create($user);
- if($res <= 0){
+ if ($res <= 0){
// If error
$db->rollback();
$langs->load("errors");
@@ -1156,9 +1155,8 @@ if ($action == 'create')
print '';
- if($conf->global->AGENDA_REMINDER_EMAIL || $conf->global->AGENDA_REMINDER_BROWSER)
+ if ($conf->global->AGENDA_REMINDER_EMAIL || $conf->global->AGENDA_REMINDER_BROWSER)
{
-
//checkbox create reminder
print '
';
print '