mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +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";
|
<select class='form-control input-large' name='{$id}' id='{$id}'>\n";
|
||||||
foreach ($labels as $label)
|
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";
|
$this->form .= "</select>\n";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user