diff options
author | Minteck <contact@minteck.org> | 2022-06-12 22:38:03 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-06-12 22:38:03 +0200 |
commit | 146774a4ed1fca946fcc24d66dcca7ffe21dcd72 (patch) | |
tree | 7e6cd0c39554fd68e4241296e3ee97a2bf1ce141 /Application/RemoveTransaction | |
parent | 6a0e17d3726241cb5f899c28db7815444b9b8e42 (diff) | |
download | bits-server-146774a4ed1fca946fcc24d66dcca7ffe21dcd72.tar.gz bits-server-146774a4ed1fca946fcc24d66dcca7ffe21dcd72.tar.bz2 bits-server-146774a4ed1fca946fcc24d66dcca7ffe21dcd72.zip |
Working around a bug
Diffstat (limited to 'Application/RemoveTransaction')
-rw-r--r-- | Application/RemoveTransaction/index.php | 1 |
1 files changed, 1 insertions, 0 deletions
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 |