src/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) { |
src/Controller/Frontend/PostVoteController.php 1 location
|
@@ 394-400 (lines=7) @@
|
| 391 |
|
// Call this for the session lock to be released (other ajax calls can then be made) |
| 392 |
|
session_write_close(); |
| 393 |
|
|
| 394 |
|
if (! $this->game) { |
| 395 |
|
$this->getResponse()->setContent(\Zend\Json\Json::encode(array( |
| 396 |
|
'success' => 0 |
| 397 |
|
))); |
| 398 |
|
|
| 399 |
|
return $this->getResponse(); |
| 400 |
|
} |
| 401 |
|
|
| 402 |
|
$entry = $this->getGameService()->findLastActiveEntry( |
| 403 |
|
$this->game, |