From: Michael J. Rubinsky Date: Sat, 14 Aug 2010 17:44:48 +0000 (-0400) Subject: Fix category handling from AS messages, use a GUID for uid, not a random id X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3fa5210b1f1a7b72d43292c720707baa287f4fda;p=horde.git Fix category handling from AS messages, use a GUID for uid, not a random id --- diff --git a/turba/lib/Driver.php b/turba/lib/Driver.php index 153e09fb5..062851bcb 100644 --- a/turba/lib/Driver.php +++ b/turba/lib/Driver.php @@ -789,7 +789,7 @@ class Turba_Driver } if (!isset($attributes['__uid'])) { - $attributes['__uid'] = strval(new Horde_Support_Randomid()); + $attributes['__uid'] = strval(new Horde_Support_Guid()); } $key = $attributes['__key'] = $this->_makeKey($this->toDriverKeys($attributes)); @@ -2497,10 +2497,9 @@ class Turba_Driver /* Categories */ if (count($message->categories)) { - $hash['category']['value'] = Horde_String::convertCharset(implode(';', $message->categories), 'utf-8', $charset); - $hash['category']['new'] = true; + $hash['category'] = Horde_String::convertCharset(implode('|', $message->categories), 'utf-8', $charset); } elseif (!$message->isGhosted('categories')) { - $hash['category']['value'] = ''; + $hash['category'] = ''; } /* Birthday and Anniversary */