From 30ca0b124fba88acb9535d8c9975bbd60d031cdd Mon Sep 17 00:00:00 2001 From: Jim Safley Date: Tue, 20 Feb 2024 12:56:49 -0500 Subject: [PATCH] Always pass an array to form --- application/src/Service/Form/SitePageFormFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/src/Service/Form/SitePageFormFactory.php b/application/src/Service/Form/SitePageFormFactory.php index 6436b6ff7..e6b3b1c15 100644 --- a/application/src/Service/Form/SitePageFormFactory.php +++ b/application/src/Service/Form/SitePageFormFactory.php @@ -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; }