This commit is contained in:
Jonathan Flueren 2023-08-17 17:14:58 +02:00
parent 522a49a7f6
commit 45d2e8a34e

View file

@ -59,9 +59,11 @@ if (json_last_error() !== JSON_ERROR_NONE) {
// success, do something
http_response_code(200);
sort($decoded);
$present = array(
"timestamp" => time(),
"names" => sort($decoded)
"names" => $decoded
);
file_put_contents($present_file, json_encode($present));