From 234d9ddb2fd3a7f67d6cbc47063d8d50d912662c Mon Sep 17 00:00:00 2001 From: Adam Zammit Date: Tue, 4 Apr 2017 11:26:33 +1000 Subject: [PATCH] Reload page after ending case to avoid duplication of GET requests --- index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 7aedb8be..4e4a8425 100644 --- a/index.php +++ b/index.php @@ -113,7 +113,11 @@ if (isset($_GET['endcase'])) $db->CompleteTrans(); //need to complete here otherwise getting the case later will fail - $db->StartTrans(); + //redirect back here + header('Location: index.php'); + exit(); + + //$db->StartTrans(); //if ($db->HasFailedTrans()) {print "

FAILED AT ENDCASE

"; exit();} }