diff --git a/htdocs/holiday/define_holiday.php b/htdocs/holiday/define_holiday.php index 721bf87054e..bb46a1291a6 100644 --- a/htdocs/holiday/define_holiday.php +++ b/htdocs/holiday/define_holiday.php @@ -68,7 +68,7 @@ if ($action == 'update' && isset($_POST['update_cp'])) } //If the user set a comment, we add it to the log comment - $comment = (isset($_POST['note_holiday'][$userID]) ? ' ('.$_POST['note_holiday'][$userID].')' : ''); + $comment = ((isset($_POST['note_holiday'][$userID]) && !empty($_POST['note_holiday'][$userID])) ? ' ('.$_POST['note_holiday'][$userID].')' : ''); // We add the modification to the log $holiday->addLogCP($user->id,$userID, $langs->trans('ManualUpdate').$comment,$userValue); @@ -150,10 +150,10 @@ print ''; print '
| '.$langs->trans('ID').' | '; -print ''.$langs->trans('UserName').' | '; +print ''.$langs->trans('Employee').' | '; print ''.$langs->trans('Available').' | '; print ''.$langs->trans('Note').' | '; -print ''.$langs->trans('UpdateButtonCP').' | '; +print ''.$langs->trans('UpdateButtonCP').' | '; print '