Skip to content

Commit c8870b1

Browse files
alamiraultfabpot
authored andcommitted
Remove usage of empty function when possible
1 parent 8cb4c6e commit c8870b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Field/ChoiceFormField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ protected function initialize()
222222
}
223223

224224
// if no option is selected and if it is a simple select box, take the first option as the value
225-
if (!$found && !$this->multiple && !empty($this->options)) {
225+
if (!$found && !$this->multiple && $this->options) {
226226
$this->value = $this->options[0]['value'];
227227
}
228228
}

0 commit comments

Comments
 (0)