$nbHolidayDeducted = price2num($_POST['nbHolidayDeducted'], 2);
    if (!$cp->updateConfCP('nbHolidayDeducted', $nbHolidayDeducted)) {
        $error++;
    }
    if ($error) {
        $message = '<div class="error">' . $langs->trans('ErrorUpdateConfCP') . '</div>';
    } else {
        $message = '<div class="ok">' . $langs->trans('UpdateConfCPOK') . '</div>';
    }
    // Si première mise à jour, prévenir l'utilisateur de mettre à jour le solde des congés payés
    $sql = "SELECT *";
    $sql .= " FROM " . MAIN_DB_PREFIX . "holiday_users";
    $result = $db->query($sql);
    $num = $db->num_rows($sql);
    if ($num < 1) {
        $cp->createCPusers();
        $message .= '<br /><div class="warning">' . $langs->trans('AddCPforUsers') . '</div>';
    }
    dol_htmloutput_mesg($message);
    // Si il s'agit de créer un event
} elseif ($action == 'create_event') {
    $error = 0;
    $optName = trim($optName);
    $optValue = price2num($optValue, 2);
    if (!$optName) {
        $message = '<div class="error">' . $langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Name")) . '</div>';
        $error++;
    }
    if (!$optValue > 0) {
        $message = '<div class="error">' . $langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Value")) . '</div>';
        $error++;