From 60f7da42c41b35b44fa397397a5e4bccd6039d45 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sun, 14 May 2023 19:07:57 +0200 Subject: Updated pages/api/money/create.php (automated) --- pages/api/money/create.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pages/api') diff --git a/pages/api/money/create.php b/pages/api/money/create.php index ff06a37..0b78f57 100644 --- a/pages/api/money/create.php +++ b/pages/api/money/create.php @@ -79,14 +79,14 @@ file_get_contents('https://' . $ntfy["server"] . '/' . $ntfy["topic"], false, st "Title: " . formatPonypush((getMember($myId)["display_name"] ?? getMember($myId)["name"]) . " created a transaction to " . $account["name"] . " (" . ucfirst($account["owner"]) . ")") . "\r\n" . "Tags: bits\r\n" . "Authorization: Basic " . base64_encode($ntfy["user"] . ":" . $ntfy["password"]), - 'content' => formatPonypush(($account["currency"] === "gbp" ? "£" : "€") . abs((float)$_GET["amount"]) . " were " . ((float)$_GET["amount"] >= 0 ? "added" : "removed") . " just now" . (trim($_GET["description"]) !== "" ? ": " . $_GET["description"] : "")) + 'content' => formatPonypush(($account["currency"] === "gbp" ? "£" : "€") . abs((float)$data["amount"]) . " were " . ((float)$data["amount"] >= 0 ? "added" : "removed") . " just now" . (trim($data["description"]) !== "" ? ": " . $_GET["description"] : "")) ] ])); array_unshift($account["transactions"], [ "author" => $myId, - "description" => $_GET["description"], - "amount" => (float)$_GET["amount"], + "description" => $data["description"], + "amount" => (float)$data["amount"], "date" => date('c') ]); -- cgit