summaryrefslogtreecommitdiff
path: root/pages/money.inc
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-08-02 14:08:08 +0200
committerRaindropsSys <contact@minteck.org>2023-08-02 14:08:08 +0200
commit5103495a461ed90f23b5ec890dca73935bff0c68 (patch)
treeadc16bfa325372623d6f58c3befa28bb25b72cec /pages/money.inc
parent0406b656d04a6fffbcc5f6d16ecec9906cc3b609 (diff)
downloadpluralconnect-5103495a461ed90f23b5ec890dca73935bff0c68.tar.gz
pluralconnect-5103495a461ed90f23b5ec890dca73935bff0c68.tar.bz2
pluralconnect-5103495a461ed90f23b5ec890dca73935bff0c68.zip
Updated 19 files and added assets/icons/new/menu.svg (automated)
Diffstat (limited to 'pages/money.inc')
-rw-r--r--pages/money.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/pages/money.inc b/pages/money.inc
index aa2e57e..67a9a56 100644
--- a/pages/money.inc
+++ b/pages/money.inc
@@ -27,6 +27,12 @@ if (isset($parts[2])) {
$systemID = $_PROFILE["login"] === "cloudburst" ? "ynmuc" : "gdapd";
$fronters = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/" . ($_PROFILE["login"] === "cloudburst" ? "ynmuc" : "gdapd") . "/fronters.json"), true)["members"];
+if (!isset($parts[2])) {
+ unset($systemID);
+} else {
+ $systemID = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/money/" . $parts[2] . ".json"), true)["owner"] === "cloudburst" ? "ynmuc" : "gdapd";
+}
+
if (count($fronters) > 0) {
$myId = $fronters[0]["id"];
} else {