Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Commit 6b60f08

Browse files
committed
Better checking if 'label' is specified for checkbox
1 parent f9d58db commit 6b60f08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Manavo/BootstrapForms/FormBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public function checkbox(
207207
) {
208208
$checkable = parent::checkbox($name, $value, $checked, $options);
209209

210-
return @$options['label'] ?
210+
return array_key_exists('label', $options) ?
211211
$this->wrapCheckable($options['label'], 'checkbox', $checkable) :
212212
$checkable;
213213
}

0 commit comments

Comments
 (0)