Fix deprecated null parameter passed to explode()

This commit is contained in:
Simounet 2023-09-26 18:02:46 +02:00
parent f06a826c6d
commit a46fd5fc9f
No known key found for this signature in database
GPG key ID: 77D3B7DC794EB770

View file

@ -45,7 +45,7 @@ class TagController extends AbstractController
$form = $this->createForm(NewTagType::class, new Tag());
$form->handleRequest($request);
$tags = $form->get('label')->getData();
$tags = $form->get('label')->getData() ?? '';
$tagsExploded = explode(',', $tags);
// avoid too much tag to be added