Skip to content

Commit

Permalink
Merge pull request #478 from gregorybesson/develop
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
gregorybesson authored Jul 21, 2022
2 parents e294235 + 1911814 commit b511ce2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Controller/Frontend/CrosswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,15 @@ public function playAction()
$index = $entry->getStep();
if (!isset($words[$index])) {
$word = $words[0]->getSolution();
$clue = $words[0]->getClue();
} else {
$word = $words[$index]->getSolution();
$clue = $words[$index]->getClue();
}

$viewModel->setVariables([
'word' => $word,
'clue' => $clue,
'locale' => $locale,
]);
}
Expand Down

0 comments on commit b511ce2

Please sign in to comment.