Skip to content

Commit 9316031

Browse files
author
Lennart
committed
Fix optgroup label assignment in htmlform.php #26
1 parent a91c88f commit 9316031

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

application/datamapper/htmlform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ function _options($list, $sel)
639639
{
640640
if(is_array($label))
641641
{
642-
$l .= '<optgroup label="' . htmlspecialchars($key) . '">';
642+
$l .= '<optgroup label="' . htmlspecialchars($opt) . '">';
643643
$l .= $this->_options($label, $sel);
644644
$l .= '</optgroup>';
645645
}

0 commit comments

Comments
 (0)