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:33:32 +00:00
parent e5eac71f71
commit 4a77931db0

View File

@ -284,7 +284,7 @@ class boinfolog
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)))
{
return True;