Skip to content

Commit

Permalink
Merge pull request #182 from ArmaForces/fix/required_download
Browse files Browse the repository at this point in the history
Fix required mods download
  • Loading branch information
veteran29 authored Feb 9, 2021
2 parents 9647f8d + 2944c25 commit 1d89798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/ModListPublicController.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function downloadAction(ModList $modList, string $optionalModsJson = null
{
$fileName = sprintf('%s %s.html', $modList->getName(), (new \DateTimeImmutable())->format('Y-m-d H-i-s'));
$mods = $this->modRepository->findIncludedSteamWorkshopMods($modList);
$optionalMods = json_decode($optionalModsJson, true) ?: [];
$optionalMods = json_decode($optionalModsJson ?? '', true) ?: [];

$template = $this->renderView('mod_list_public/launcher_preset_template.html.twig', [
'modList' => $modList,
Expand Down

0 comments on commit 1d89798

Please sign in to comment.