fixed issues with single select box

This commit is contained in:
Roland Gruber 2019-07-19 16:15:11 +02:00
parent 877d35362b
commit 3cabf78630
1 changed files with 1 additions and 1 deletions

View File

@ -1320,6 +1320,7 @@ class htmlSelect extends htmlElement {
// if select box has only one element then show it as text
if ((sizeof($this->elements) == 1) && !$this->multiSelect && $this->transformSingleSelect) {
echo '</div>';
echo '&nbsp;';
if ($this->hasDescriptiveElements) {
$keys = array_keys($this->elements);
echo $keys[0];
@ -1327,7 +1328,6 @@ class htmlSelect extends htmlElement {
else {
echo $this->elements[0];
}
echo '&nbsp;';
}
elseif (sizeof($this->elements) == 0) {
echo '</div>';