VCALENDAR converter: fixes empty CATEGORIES property
[tine20] / tine20 / Tinebase / Model / Tag.php
index c8f77c0..a7ace89 100644 (file)
@@ -114,6 +114,11 @@ class Tinebase_Model_Tag extends Tinebase_Record_Abstract
             if (Tinebase_Core::isLogLevel(Zend_Log::DEBUG)) 
                 Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE__ . ' Trying to allocate tag ' . $tagName);
             
+            $tagName = trim($tagName);
+            if (empty($tagName)) {
+                continue;
+            }
+            
             $existingTags = Tinebase_Tags::getInstance()->searchTags(
                 new Tinebase_Model_TagFilter(array(
                     'name'        => $tagName,