Skip to content

Commit

Permalink
Fix server response in controller demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
efyx committed Jun 10, 2010
1 parent cc00d94 commit 944abca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Demos/Controller/test.php 100755 → 100644
Expand Up @@ -22,8 +22,9 @@

var_dump($APEserver.rawurlencode(json_encode($cmd)));
$data = file_get_contents($APEserver.rawurlencode(json_encode($cmd)));
$data = json_decode($data);

if ($data == 'OK') {
if ($data[0]->data->value == 'ok') {
echo 'Message sent!';
} else {
echo 'Error sending message, server response is : <pre>'.$data.'</pre>';
Expand Down

0 comments on commit 944abca

Please sign in to comment.