LSattr_html_select_list : fixed bug with number key value

This commit is contained in:
Benjamin Renard 2013-07-09 18:50:31 +02:00
parent 4255015687
commit 8722098db3

View file

@ -89,7 +89,7 @@ class LSattr_html_select_list extends LSattr_html{
$retInfos = array(); $retInfos = array();
if (is_array($this -> config['html_options']['possible_values'])) { if (is_array($this -> config['html_options']['possible_values'])) {
foreach($this -> config['html_options']['possible_values'] as $val_name => $val) { foreach($this -> config['html_options']['possible_values'] as $val_name => $val) {
if($val_name=='OTHER_OBJECT') { if($val_name==='OTHER_OBJECT') {
if ((!isset($val['object_type'])) || (!isset($val['value_attribute']))) { if ((!isset($val['object_type'])) || (!isset($val['value_attribute']))) {
LSerror :: addErrorCode('LSattr_html_select_list_01',$this -> name); LSerror :: addErrorCode('LSattr_html_select_list_01',$this -> name);
break; break;