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/AddTransaction/index.php | 1 + 1 file changed, 1 insertion(+) (limited to 'Application/AddTransaction/index.php') diff --git a/Application/AddTransaction/index.php b/Application/AddTransaction/index.php index 1c3d35f..e6b7d34 100644 --- a/Application/AddTransaction/index.php +++ b/Application/AddTransaction/index.php @@ -79,4 +79,5 @@ if ($_GET['Currency'] === "€") { $list = array_reverse($list); +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