From 146774a4ed1fca946fcc24d66dcca7ffe21dcd72 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sun, 12 Jun 2022 22:38:03 +0200 Subject: Working around a bug --- Application/RemoveTransaction/index.php | 1 + 1 file changed, 1 insertion(+) (limited to 'Application/RemoveTransaction') diff --git a/Application/RemoveTransaction/index.php b/Application/RemoveTransaction/index.php index ad0ed5d..138f6a8 100644 --- a/Application/RemoveTransaction/index.php +++ b/Application/RemoveTransaction/index.php @@ -49,4 +49,5 @@ $list = array_filter($list, function ($item) { return ($item["date"] !== base64url_decode($_GET['Transaction'])); }); +file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/Private/Data/Transactions." . str_replace(":", "-", date('c')) . ".json", file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/Private/Data/Transactions.json")); file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/Private/Data/Transactions.json", json_encode($list)); \ No newline at end of file -- cgit