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);