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

@ -564,7 +564,14 @@ class etemplate_widget_nextmatch extends etemplate_widget
{
foreach($options as $key => &$label)
{
$label = html_entity_decode($label, ENT_NOQUOTES,'utf-8');
if(!is_array($label))
{
$label = html_entity_decode($label, ENT_NOQUOTES,'utf-8');
}
else if ($label['label'])
{
$label['label'] = html_entity_decode($label['label'], ENT_NOQUOTES,'utf-8');
}
}
}
}