fix setting for attribute of label element

This commit is contained in:
Uwe Steinmann 2026-02-04 20:49:00 +01:00
parent 3722d9a536
commit 1cf1d2d767

View File

@ -1296,7 +1296,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
foreach($value['attributes'] as $a)
echo ' '.$a[0].'="'.$a[1].'"';
echo ">";
echo '<label class="form-check-label" '.(!empty($value['id']) ?? 'for="'.$value['id'].'"').'>'.(!empty($value['label']) ?? $value['label']).'</label>';
echo '<label class="form-check-label" '.(!empty($value['id']) ? 'for="'.$value['id'].'"' : '').'>'.(!empty($value['label']) ? $value['label'] : '').'</label>';
echo "</div>";
break;
default: