1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-22 05:31:58 +02:00

Make sure <option> has a value.

This commit is contained in:
Cameron 2018-02-16 13:34:54 -08:00
parent fd7b9e352e
commit 7ffb60c60b

@ -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";
}