Skip to content
Snippets Groups Projects
Commit 00d639d3 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

form: fix when anonymous is not allowed

parent c536dc35
No related branches found
No related tags found
No related merge requests found
...@@ -115,7 +115,7 @@ class ElementFormController extends GoGoController ...@@ -115,7 +115,7 @@ class ElementFormController extends GoGoController
->add('email', EmailType::class, ['required' => false]) ->add('email', EmailType::class, ['required' => false])
->getForm(); ->getForm();
$userEmail = $request->request->get('user')['email']; $userEmail = $request->request->get('user')['email'] ?? '';
$emailAlreadyUsed = false; $emailAlreadyUsed = false;
if ($userEmail) { if ($userEmail) {
$othersUsers = $dm->get('User')->findByEmail($userEmail); $othersUsers = $dm->get('User')->findByEmail($userEmail);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment