diff options
Diffstat (limited to 'includes/travelling.inc')
-rw-r--r-- | includes/travelling.inc | 6 |
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 |