summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pages/api/money/create.php6
1 files changed, 3 insertions, 3 deletions
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')
]);