we can have multiple comma-separated types now

This commit is contained in:
Ralf Becker 2006-11-23 13:52:56 +00:00
parent 4cc4052813
commit efb218c924

View File

@ -60,7 +60,8 @@
//echo '<pre style="text-align: left;">'; print_r($value); echo "</pre>\n";
foreach($this->customfields as $name => $field)
{
if (!empty($field['type2']) && $field['type2'] != $value)
// check if the customfield get's displayed for type $value, we can have multiple comma-separated types now
if (!empty($field['type2']) && !strstr(','.$field['type2'].',',','.$value.','))
{
continue; // not for our content type
}