header('location:./index.php?m=MarcheHTML&v=ReservationCommande&fonction=detailMarche&id_marche=' . $_GET["id_marche"]);
                     }
                 }
             } else {
                 if (isset($_GET["id_marche"])) {
                     // Il faut au moins un produit
                     include_once CHEMIN_CLASSES_VR . "VRerreur.php";
                     include_once CHEMIN_CLASSES_VR . "TemplateVR.php";
                     $lVr = new TemplateVR();
                     $lVr->setValid(false);
                     $lVr->getLog()->setValid(false);
                     $lErreur = new VRerreur();
                     $lErreur->setCode(MessagesErreurs::ERR_207_CODE);
                     $lErreur->setMessage(MessagesErreurs::ERR_207_MSG);
                     $lVr->getLog()->addErreur($lErreur);
                     $_SESSION['msg'] = $lVr->exportToArray();
                     header('location:./index.php?m=MarcheHTML&v=ReservationCommande&fonction=detailMarche&id_marche=' . $_GET["id_marche"]);
                 }
             }
             break;
         default:
             $lLogger->log("Demande d'accés à ReservationCommande sans identifiant commande par : " . $_SESSION[ID_CONNEXION], PEAR_LOG_INFO);
             // Maj des logs
             header('location:./index.php');
             break;
     }
 } else {
     $lLogger->log("Demande d'accés à ReservationCommande sans identifiant commande par : " . $_SESSION[ID_CONNEXION], PEAR_LOG_INFO);
     // Maj des logs
     header('location:./index.php');
 }