Fix categories to tags.
authorJan Schneider <jan@horde.org>
Thu, 26 Feb 2009 11:07:22 +0000 (12:07 +0100)
committerJan Schneider <jan@horde.org>
Thu, 26 Feb 2009 11:07:22 +0000 (12:07 +0100)
kronolith/lib/Driver.php

index c9988a2..fc74b2b 100644 (file)
@@ -853,10 +853,8 @@ class Kronolith_Event {
         }
 
         // Tags
-        $categories = $vEvent->getAttribute('CATEGORIES');
-        if (!is_array($categories) && !is_a($categories, 'PEAR_Error')) {
-            // The CATEGORY attribute is delimited by commas, so the tagger
-            // can deal with it as-is.
+        $categories = $vEvent->getAttributeValues('CATEGORIES');
+        if (!is_a($categories, 'PEAR_Error')) {
             $this->tags = $categories;
         }