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
|
@@ 415-421 (lines=7) @@
|
412 |
|
// Call this for the session lock to be released (other ajax calls can then be made) |
413 |
|
session_write_close(); |
414 |
|
|
415 |
|
if (! $this->game) { |
416 |
|
$this->getResponse()->setContent(\Zend\Json\Json::encode(array( |
417 |
|
'success' => 0 |
418 |
|
))); |
419 |
|
|
420 |
|
return $this->getResponse(); |
421 |
|
} |
422 |
|
|
423 |
|
$entry = $this->getGameService()->findLastActiveEntry( |
424 |
|
$this->game, |