diff --git a/src/Pumukit/WizardBundle/Controller/WizardController.php b/src/Pumukit/WizardBundle/Controller/WizardController.php index 97e569891..d737223d2 100644 --- a/src/Pumukit/WizardBundle/Controller/WizardController.php +++ b/src/Pumukit/WizardBundle/Controller/WizardController.php @@ -44,8 +44,8 @@ public function upload(Request $request, string $series): Response 'minFileSize' => $this->inboxService->minFileSize(), 'maxFileSize' => $this->inboxService->maxFileSize(), 'maxNumberOfFiles' => $this->inboxService->maxNumberOfFiles(), - 'show_profiles' => $request->query->get('show_profiles') !== null ? filter_var($request->query->get('show_profiles'), FILTER_VALIDATE_BOOLEAN) : true, - 'profile' => $request->query->get('profile', null) + 'show_profiles' => null !== $request->query->get('show_profiles') ? filter_var($request->query->get('show_profiles'), FILTER_VALIDATE_BOOLEAN) : true, + 'profile' => $request->query->get('profile', null), ]); }