From 246ee58d8bcb56ecb4ae9d48b94972e2a3498453 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 27 Apr 2022 08:44:49 +0200 Subject: [PATCH] fix type for condition in ParticipationController --- .../ChillEventBundle/Controller/ParticipationController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillEventBundle/Controller/ParticipationController.php b/src/Bundle/ChillEventBundle/Controller/ParticipationController.php index 63f40df32..1ef545616 100644 --- a/src/Bundle/ChillEventBundle/Controller/ParticipationController.php +++ b/src/Bundle/ChillEventBundle/Controller/ParticipationController.php @@ -235,7 +235,7 @@ class ParticipationController extends AbstractController 'The participation was created' )); - if ($request->query->get('return_path')) { + if ($request->query->has('return_path')) { return $this->redirect($request->query->get('return_path')); } @@ -716,7 +716,7 @@ class ParticipationController extends AbstractController */ protected function newSingle(Request $request) { - $returnPath = $request->query->get('return_path') ? + $returnPath = $request->query->has('return_path') ? $request->query->get('return_path') : null; $participation = $this->handleRequest($request, new Participation(), false);