src/PlaygroundGame/Controller/Frontend/PostVoteController.php 1 location
|
@@ 399-405 (lines=7) @@
|
| 396 |
|
// Call this for the session lock to be released (other ajax calls can then be made) |
| 397 |
|
session_write_close(); |
| 398 |
|
|
| 399 |
|
if (! $this->game) { |
| 400 |
|
$this->getResponse()->setContent(\Zend\Json\Json::encode(array( |
| 401 |
|
'success' => 0 |
| 402 |
|
))); |
| 403 |
|
|
| 404 |
|
return $this->getResponse(); |
| 405 |
|
} |
| 406 |
|
|
| 407 |
|
$entry = $this->getGameService()->findLastActiveEntry( |
| 408 |
|
$this->game, |
src/PlaygroundGame/Controller/Frontend/TradingCardController.php 1 location
|
@@ 35-41 (lines=7) @@
|
| 32 |
|
// Call this for the session lock to be released (other ajax calls can then be made) |
| 33 |
|
session_write_close(); |
| 34 |
|
|
| 35 |
|
if (! $this->game) { |
| 36 |
|
$this->getResponse()->setContent(\Zend\Json\Json::encode(array( |
| 37 |
|
'success' => 0 |
| 38 |
|
))); |
| 39 |
|
|
| 40 |
|
return $this->getResponse(); |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
$entry = $this->getGameService()->play($this->game, $this->user); |
| 44 |
|
if (!$entry) { |