We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e260bb9 + b8bd7b4 commit 833cae4Copy full SHA for 833cae4
src/templates/Mouf/Html/Widgets/Form/CheckboxField__inline.php
@@ -3,8 +3,12 @@
3
$input = $object->getInput();
4
$label = $object->getLabel();
5
$text = $label->getChildren();
6
-$text = $text[0];
+if (count($text) > 0) {
7
+ $text = $text[0];
8
+}
9
$label->setChildren([$input]);
-$label->addChild($text);
10
+if ($text !== null) {
11
+ $label->addChild($text);
12
13
$label->addClass("checkbox-inline");
14
$label->toHtml();
0 commit comments