mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Make sure <option> has a value.
This commit is contained in:
@@ -2072,7 +2072,7 @@ class e_forms
|
||||
<select class='form-control input-large' name='{$id}' id='{$id}'>\n";
|
||||
foreach ($labels as $label)
|
||||
{
|
||||
$this->form .= "<option".($label == $selected ? " selected='selected'" : "").">{$label}</option>\n";
|
||||
$this->form .= "<option value='".$label."' ".($label == $selected ? " selected='selected'" : "").">{$label}</option>\n";
|
||||
}
|
||||
$this->form .= "</select>\n";
|
||||
}
|
||||
|
Reference in New Issue
Block a user