Avoid php warning if extrafield list from table have bad settings
This commit is contained in:
parent
6b1b6b4fee
commit
2f112efad5
@ -677,7 +677,9 @@ class ExtraFields
|
|||||||
}
|
}
|
||||||
elseif ($type == 'sellist')
|
elseif ($type == 'sellist')
|
||||||
{
|
{
|
||||||
|
|
||||||
$out='<select class="flat" name="options_'.$key.'">';
|
$out='<select class="flat" name="options_'.$key.'">';
|
||||||
|
if (is_array($param['options'])) {
|
||||||
$param_list=array_keys($param['options']);
|
$param_list=array_keys($param['options']);
|
||||||
$InfoFieldList = explode(":", $param_list[0]);
|
$InfoFieldList = explode(":", $param_list[0]);
|
||||||
|
|
||||||
@ -721,6 +723,7 @@ class ExtraFields
|
|||||||
}
|
}
|
||||||
$this->db->free();
|
$this->db->free();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$out.='</select>';
|
$out.='</select>';
|
||||||
}
|
}
|
||||||
elseif ($type == 'checkbox')
|
elseif ($type == 'checkbox')
|
||||||
@ -824,6 +827,7 @@ class ExtraFields
|
|||||||
}
|
}
|
||||||
elseif ($type == 'sellist')
|
elseif ($type == 'sellist')
|
||||||
{
|
{
|
||||||
|
if (is_array($params['options'])) {
|
||||||
$param_list=array_keys($params['options']);
|
$param_list=array_keys($params['options']);
|
||||||
$InfoFieldList = explode(":", $param_list[0]);
|
$InfoFieldList = explode(":", $param_list[0]);
|
||||||
$keyList='rowid';
|
$keyList='rowid';
|
||||||
@ -843,6 +847,7 @@ class ExtraFields
|
|||||||
$value=$obj->$InfoFieldList[1];
|
$value=$obj->$InfoFieldList[1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
elseif ($type == 'radio')
|
elseif ($type == 'radio')
|
||||||
{
|
{
|
||||||
$value=$params['options'][$value];
|
$value=$params['options'][$value];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user