Merged in master (pull request #52)

MAPG-65 create variable so it can be a reference
This commit is contained in:
bence committed 2020-05-26 21:27:15 +00:00
commit b821d4a045
1 file changed
+2 -1
+2 -1
View File
@@ -24,7 +24,8 @@ class PositionController implements ControllerInterface
public function run(): ViewBase
{
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) {