mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-05 06:58:50 +00:00
Merge pull request #6985 from Simounet/fix/tag-controller-null-value
This commit is contained in:
commit
34e51243d9
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue