| branch | new-model |
| changeset 934 | aa1ede2e2c29 |
| parent 931 | 0fdce6e14748 |
| 933:8604bc7b4712 | 934:aa1ede2e2c29 |
|---|---|
1 <?php |
1 <?php |
2 |
2 |
3 $data = json_decode($HTTP_RAW_POST_DATA); |
3 $data = json_decode(file_get_contents("php://input")); |
4 |
4 |
5 if (!isset($data->annotations[0]->id)) { |
5 if (!isset($data->annotations[0]->id)) { |
6 $data->annotations[0]->id = uniqid("annotation_"); |
6 $data->annotations[0]->id = uniqid("annotation_"); |
7 } |
7 } |
8 |
8 |