Merged in hotfix/MAPG-110-in-place-reset-of-game (pull request #87)

Hotfix/MAPG-110 in place reset of game
This commit is contained in:
bence committed 2020-06-03 22:20:44 +00:00
commit b6f8735da8
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -22,7 +22,7 @@ class PositionController
$mapId = (int) $parameters['mapId'];
if (!isset($_SESSION['state']) || $_SESSION['state']['mapId'] !== $mapId) {
$data = ['error' => 'No valid session found!'];
$data = ['error' => 'no_session_found'];
return new JsonContent($data);
}
@@ -60,7 +60,7 @@ class PositionController
$mapId = (int) $parameters['mapId'];
if (!isset($_SESSION['state']) || $_SESSION['state']['mapId'] !== $mapId) {
$data = ['error' => 'No valid session found!'];
$data = ['error' => 'no_session_found'];
return new JsonContent($data);
}