From 5321cbd4989658576533b6a4a4205269a96db751 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Sun, 22 Feb 2015 04:48:43 -0500
Subject: [PATCH] Fix missing or not up-to-date CATEGORIES entry in vCard export (#1490277)

---
 program/lib/Roundcube/rcube_vcard.php |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/program/lib/Roundcube/rcube_vcard.php b/program/lib/Roundcube/rcube_vcard.php
index 96add11..4e5ac84 100644
--- a/program/lib/Roundcube/rcube_vcard.php
+++ b/program/lib/Roundcube/rcube_vcard.php
@@ -393,6 +393,10 @@
                     $this->raw[$tag][$index]['type'] = explode(',', ($typemap[$type_uc] ? $typemap[$type_uc] : $type));
                 }
             }
+            else {
+                unset($this->raw[$tag]);
+            }
+
             break;
         }
     }

--
Gitblit v1.9.1