summaryrefslogtreecommitdiff
path: root/includes/travelling.inc
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-10-18 08:59:09 +0200
committerMinteck <contact@minteck.org>2022-10-18 08:59:09 +0200
commit2c4ae43e688a9873e86211ea0e7aeb9ba770dd77 (patch)
tree17848d95522dab25d3cdeb9c4a6450e2a234861f /includes/travelling.inc
parent108525534c28013cfe1897c30e4565f9893f3766 (diff)
downloadpluralconnect-2c4ae43e688a9873e86211ea0e7aeb9ba770dd77.tar.gz
pluralconnect-2c4ae43e688a9873e86211ea0e7aeb9ba770dd77.tar.bz2
pluralconnect-2c4ae43e688a9873e86211ea0e7aeb9ba770dd77.zip
Update
Diffstat (limited to 'includes/travelling.inc')
-rw-r--r--includes/travelling.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/travelling.inc b/includes/travelling.inc
index edcb267..b0b58f0 100644
--- a/includes/travelling.inc
+++ b/includes/travelling.inc
@@ -22,6 +22,8 @@ foreach ($members as $member) {
"travelling" => false,
"history" => []
];
+
+ @file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/travelling/travelling.json", utf8_encode(json_encode($travelling, JSON_PRETTY_PRINT)));
}
}
@@ -42,6 +44,4 @@ function withTravelers(array $members, string $system): array {
return isset($travelling[$i['id']]) && $travelling[$i['id']]['travelling'];
})
];
-}
-
-@file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/travelling/travelling.json", utf8_encode(json_encode($travelling, JSON_PRETTY_PRINT))); \ No newline at end of file
+} \ No newline at end of file