From 3b85963f394650b337336d35862cfb0357af9f4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Lehrke?= Date: Mon, 7 Dec 2009 09:04:39 +0000 Subject: [PATCH] Fix infolog category issue again --- infolog/inc/class.infolog_ical.inc.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/infolog/inc/class.infolog_ical.inc.php b/infolog/inc/class.infolog_ical.inc.php index 7b4182bd96..c8d667244d 100644 --- a/infolog/inc/class.infolog_ical.inc.php +++ b/infolog/inc/class.infolog_ical.inc.php @@ -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; } }