From e05eccd5246792f83853c4695d7417e118d323a4 Mon Sep 17 00:00:00 2001 From: "bastien.ollier@etu.uca.fr" Date: Mon, 12 Dec 2022 16:14:43 +0100 Subject: [PATCH] modif quand action=NULL --- controllers/ControllerAdmin.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/controllers/ControllerAdmin.php b/controllers/ControllerAdmin.php index 9b88657..06c6509 100644 --- a/controllers/ControllerAdmin.php +++ b/controllers/ControllerAdmin.php @@ -7,8 +7,13 @@ class controllerAdmin { session_start(); try { + if (in_array("action",$_REQUEST)) { + $action = $_REQUEST['action']; + } + else { + $action = ""; + } - $action=$_REQUEST['action']; switch($action) { case "ajoutSource": $this->ajoutSource($_REQUEST["linkSource"]);