Skip to content

Commit b5a635e

Browse files
authored
Merge pull request #26 from P2GR/jamieburchell-patch-1
Fix optgroup label assignment in htmlform.php
2 parents 914164b + e79665e commit b5a635e

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
@@ -614,7 +614,7 @@ function _options($list, $sel)
614614
{
615615
if(is_array($label))
616616
{
617-
$l .= '<optgroup label="' . htmlspecialchars($key) . '">';
617+
$l .= '<optgroup label="' . htmlspecialchars($opt) . '">';
618618
$l .= $this->_options($label, $sel);
619619
$l .= '</optgroup>';
620620
}

0 commit comments

Comments
 (0)