diff options
author | RaindropsSys <contact@minteck.org> | 2023-05-14 19:07:57 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-05-14 19:07:57 +0200 |
commit | 60f7da42c41b35b44fa397397a5e4bccd6039d45 (patch) | |
tree | 48589741f5f6ba5ee389b2d4b3307c571a08bfd0 /pages | |
parent | a98bafed63f9322d54422861521c0c3c5d110d9a (diff) | |
download | pluralconnect-60f7da42c41b35b44fa397397a5e4bccd6039d45.tar.gz pluralconnect-60f7da42c41b35b44fa397397a5e4bccd6039d45.tar.bz2 pluralconnect-60f7da42c41b35b44fa397397a5e4bccd6039d45.zip |
Updated pages/api/money/create.php (automated)
Diffstat (limited to 'pages')
-rw-r--r-- | pages/api/money/create.php | 6 |
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') ]); |