Skip to content
Browse files

reverted changes that broke some AJAX

  • Loading branch information...
1 parent 36eb862 commit 4a6db8ebedfef4a8845755e289f2412ca12eb44a unknown committed Mar 22, 2012
Showing with 2 additions and 6 deletions.
  1. +2 −6 ajax_helper.php
View
8 ajax_helper.php
@@ -233,12 +233,8 @@
foreach ($actions as $action) {
if (isset($_POST[$action])) {
try {
- if ($Game->{$action}($player_id)) {
- echo 'OK';
- }
- else {
- echo 'ERROR';
- }
+ $Game->{$action}($player_id);
+ echo 'OK';
}
catch (MyException $e) {
echo $e;

0 comments on commit 4a6db8e

Please sign in to comment.
Something went wrong with that request. Please try again.