Skip to content

Commit

Permalink
Merge pull request #183 from ArmaForces/dev
Browse files Browse the repository at this point in the history
1.10.1
  • Loading branch information
veteran29 authored Feb 9, 2021
2 parents 4630bdf + 1d89798 commit 2482ee6
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 2482ee6

Please sign in to comment.