Commit c3f418b1 authored by Taylor Otwell's avatar Taylor Otwell

cleaning up form class.

parent c3ea6e65
......@@ -464,13 +464,12 @@ class Form {
$html_options = array();
// -------------------------------------------------------
// Build the HTML options for the drop-down.
// -------------------------------------------------------
foreach ($options as $value => $display)
{
$option_attributes = array();
$option_attributes['value'] = HTML::entities($value);
$option_attributes['selected'] = ($value == $selected) ? 'selected' : null;
$option_attributes = array('value' => HTML::entities($value), 'selected' => ($value == $selected) ? 'selected' : null);
$html_options[] = '<option'.HTML::attributes($option_attributes).'>'.HTML::entities($display).'</option>';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment