fixed not shown custom fields tab in edit, if there's no field shown only for that type (fields shown for multiple types were not taken into account)

This commit is contained in:
Ralf Becker 2007-09-14 07:34:05 +00:00
parent f37e2bfdc6
commit eb70245a4b

View File

@ -284,7 +284,7 @@ class boinfolog
foreach($this->customfields as $name => $field) foreach($this->customfields as $name => $field)
{ {
if ((!$type || empty($field['type2']) || $field['type2'] == $type) && if ((!$type || empty($field['type2']) || in_array($type,explode(',',$field['type2']))) &&
(!$links || in_array($field['type'],$link_types))) (!$links || in_array($field['type'],$link_types)))
{ {
return True; return True;