From ad8b071e817f1fa2cab758ea96c47f2dfc470315 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 26 Nov 2021 14:13:29 +0100 Subject: [PATCH] Prepare code --- htdocs/admin/tools/export_files.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/admin/tools/export_files.php b/htdocs/admin/tools/export_files.php index ec2ad4a815a..7c96d487288 100644 --- a/htdocs/admin/tools/export_files.php +++ b/htdocs/admin/tools/export_files.php @@ -179,9 +179,9 @@ if ($errormsg) { setEventMessages($langs->trans("Error")." : ".$errormsg, null, 'errors'); } -// Redirect t backup page -header("Location: dolibarr_export.php"); - -$time_end = time(); +// Redirect to calling page +$returnto = 'dolibarr_export.php'; $db->close(); + +header("Location: ".$returnto);