From 0fff5910e9850cf67f08e8e9f448d45958218026 Mon Sep 17 00:00:00 2001 From: jbousquie Date: Thu, 24 Nov 2016 14:22:46 +0100 Subject: [PATCH] fix else location au mauvais endroit --- index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index 8a309e3..e560e59 100644 --- a/index.php +++ b/index.php @@ -49,9 +49,9 @@ if ( $_SERVER["REQUEST_METHOD"] == "POST" && $_SERVER["SERVER_PORT"] == "443" && $req_modele_machine = 'UPDATE machines SET marque = "'. $marque .'", modele = "'. $modele .'", type_systeme ="'. $type .'", mac = "'. $mac .'", mac_description = "'. $descr .'" WHERE machine_id = "'. $computer .'"'; db_query($db, $req_modele_machine); } - else { - // renvoi sur le menu principal - header('Location: '.$winlog_url.'/admin/index.php'); - } +} +else { + // renvoi sur le menu principal + header('Location: '.$winlog_url.'/admin/index.php'); } ?>