From 72b5c3253bc496d406a4ab154cc60c32481015bc Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 23 Sep 2020 18:01:17 +0200 Subject: [PATCH] Clean code --- htdocs/main.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 940aabee808..0c51c153220 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -385,11 +385,10 @@ if ((!defined('NOCSRFCHECK') && empty($dolibarr_nocsrfcheck) && !empty($conf->gl $savid = ((int) $_POST['id']); unset($_POST); //unset($_POST['action']); - unset($_POST['confirm']); + //unset($_POST['confirm']); unset($_GET['confirm']); unset($_GET['action']); $_POST['id'] = ((int) $savid); - $_POST['action'] = ''; } }