Skip to content

Commit

Permalink
Always pass an array to form
Browse files Browse the repository at this point in the history
  • Loading branch information
jimsafley committed Feb 20, 2024
1 parent 62233fb commit 30ca0b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/src/Service/Form/SitePageFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class SitePageFormFactory implements FactoryInterface
{
public function __invoke(ContainerInterface $services, $requestedName, array $options = null)
{
$form = new SitePageForm(null, $options);
$form = new SitePageForm(null, $options ?? []);
$form->setCurrentTheme($services->get('Omeka\Site\ThemeManager')->getCurrentTheme());
return $form;
}
Expand Down

0 comments on commit 30ca0b1

Please sign in to comment.