MAPG-65 create variable so it can be a reference
This commit is contained in:
parent
98f975bf91
commit
59b93e0078
@ -24,7 +24,8 @@ class PositionController implements ControllerInterface
|
|||||||
public function run(): ViewBase
|
public function run(): ViewBase
|
||||||
{
|
{
|
||||||
if (!isset($_SESSION['state']) || $_SESSION['state']['mapId'] !== $this->mapId) {
|
if (!isset($_SESSION['state']) || $_SESSION['state']['mapId'] !== $this->mapId) {
|
||||||
return new JsonView(['error' => 'No valid session found!']);
|
$data = ['error' => 'No valid session found!'];
|
||||||
|
return new JsonView($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count($_SESSION['state']['rounds']) === 0) {
|
if (count($_SESSION['state']['rounds']) === 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user