Fix deprecated null parameter passed to explode()
This commit is contained in:
parent
f06a826c6d
commit
a46fd5fc9f
@ -45,7 +45,7 @@ class TagController extends AbstractController
|
|||||||
$form = $this->createForm(NewTagType::class, new Tag());
|
$form = $this->createForm(NewTagType::class, new Tag());
|
||||||
$form->handleRequest($request);
|
$form->handleRequest($request);
|
||||||
|
|
||||||
$tags = $form->get('label')->getData();
|
$tags = $form->get('label')->getData() ?? '';
|
||||||
$tagsExploded = explode(',', $tags);
|
$tagsExploded = explode(',', $tags);
|
||||||
|
|
||||||
// avoid too much tag to be added
|
// avoid too much tag to be added
|
||||||
|
Loading…
x
Reference in New Issue
Block a user