diff --git a/WEB/Model/VisitorModel.php b/WEB/Model/VisitorModel.php index 5fb23e2a..328e62a6 100644 --- a/WEB/Model/VisitorModel.php +++ b/WEB/Model/VisitorModel.php @@ -86,9 +86,9 @@ class VisitorModel public function goToHome() { global $rep, $vues, $error; - new Utilisateur("test", "test", "test", false); - echo "Home"; try { + new Utilisateur("test", "test", "test", false); + echo "Home"; require($rep . $vues['main']); } catch (Exception $e) { $error = "404";