Fix infolog category issue again

This commit is contained in:
Jörg Lehrke 2009-12-07 09:04:39 +00:00
parent fda9c4f5f0
commit 3b85963f39

View File

@ -623,8 +623,18 @@ class infolog_ical extends infolog_bo
break;
case 'CATEGORIES':
$cats = $this->find_or_add_categories(explode(',', $attribute['value']), $_noteID);
$note['info_cat'] = $cats[0];
if ($attribute['value'])
{
if($version == '1.0')
{
$vcats = $this->find_or_add_categories(explode(';',$attribute['value']), $_noteID);
}
else
{
$cats = $this->find_or_add_categories(explode(',',$attribute['value']), $_noteID);
}
$note['info_cat'] = $cats[0];
}
break;
}
}