Rev 635 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 635 | Rev 1292 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | die("Invalid JSON data $res"); |
35 | die("Invalid JSON data $res"); |
36 | } |
36 | } |
37 | 37 | ||
38 | if (isset($json['error'])) { |
38 | if (isset($json['error'])) { |
39 | die($json['error']."\n"); |
39 | die($json['error']."\n"); |
40 | } else if ($json['status'] == 0/*OK*/) { |
40 | } else if ($json['status'] >= 0) { |
41 | die("Insert OK\n"); |
- | |
42 | } else if ($json['status'] == 1/*RaNotExisting*/) { |
- | |
43 | die("Insert OK\n"); |
- | |
44 | } else if ($json['status'] == 2/*RaNotExistingNoInvitation*/) { |
- | |
45 | die("Insert OK\n"); |
41 | die("Insert OK\n"); |
46 | } else { |
42 | } else { |
47 | die("Error ".print_r($json,true)."\n"); |
43 | die("Error ".print_r($json,true)."\n"); |
48 | } |
44 | } |
49 | 45 |