From 8dd7d69294b286c8eb1528b1bca9c1521f2b8581 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 7 Feb 2018 16:03:31 +0100 Subject: [PATCH] Fix commit --- htdocs/expensereport/card.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/expensereport/card.php b/htdocs/expensereport/card.php index 0b8b7cdc91b..afa45a2e5cd 100644 --- a/htdocs/expensereport/card.php +++ b/htdocs/expensereport/card.php @@ -397,8 +397,6 @@ if (empty($reshook)) { $mesg=$langs->trans('MailSuccessfulySent',$mailfile->getValidAddress($emailFrom,2),$mailfile->getValidAddress($emailTo,2)); setEventMessages($mesg, null, 'mesgs'); - header("Location: ".$_SERVER["PHP_SELF"]."?id=".$id); - exit; } else { @@ -432,6 +430,8 @@ if (empty($reshook)) if (! $error) { $db->commit(); + header("Location: ".$_SERVER["PHP_SELF"]."?id=".$id); + exit; } else {