Allow changing sel_options with array data, not just key => value pairs

This commit is contained in:
Nathan Gray 2014-03-05 17:20:17 +00:00
parent 4da2182c14
commit 1124c62200

View File

@ -563,9 +563,16 @@ class etemplate_widget_nextmatch extends etemplate_widget
foreach($row as $name => &$options) foreach($row as $name => &$options)
{ {
foreach($options as $key => &$label) foreach($options as $key => &$label)
{
if(!is_array($label))
{ {
$label = html_entity_decode($label, ENT_NOQUOTES,'utf-8'); $label = html_entity_decode($label, ENT_NOQUOTES,'utf-8');
} }
else if ($label['label'])
{
$label['label'] = html_entity_decode($label['label'], ENT_NOQUOTES,'utf-8');
}
}
} }
} }
$rows[$n] = $row; $rows[$n] = $row;