Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis committed Mar 12, 2024
1 parent 69dec32 commit 7454e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/View/Helper/FieldHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ protected function formControl(string $fieldName,
string $prefix = '',
string $controlType = null): string {
$coptions = $options;
$coptions['label'] = $options['label'] ?: false;
$coptions['label'] = $options['label'] ?? false;
$coptions['readonly'] =
!$this->editable
|| (isset($options['readonly']) && $options['readonly'])
Expand Down

0 comments on commit 7454e13

Please sign in to comment.