Prepare code

This commit is contained in:
Laurent Destailleur 2021-11-26 14:13:29 +01:00
parent 0c8e2be4bd
commit ad8b071e81

View File

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