Fix
This commit is contained in:
parent
522a49a7f6
commit
45d2e8a34e
1 changed files with 3 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue