summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Kolab/Utils/DAVBackend.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Kolab/Utils/DAVBackend.php b/lib/Kolab/Utils/DAVBackend.php
index f1b7c02..d772eb8 100644
--- a/lib/Kolab/Utils/DAVBackend.php
+++ b/lib/Kolab/Utils/DAVBackend.php
@@ -85,13 +85,9 @@ class DAVBackend
*/
public static function set_uid($folder, $uid)
{
- $metakeys = array(self::IMAP_UID_KEY_CYRUS, self::IMAP_UID_KEY, self::IMAP_UID_KEY_PRIVATE);
- foreach ($metakeys as $key) {
- if ($success = $folder->set_metadata(array($key => $uid))) {
- break;
- }
+ if (!($success = $folder->set_metadata(array(self::IMAP_UID_KEY => $uid)))) {
+ $success = $folder->set_metadata(array(self::IMAP_UID_KEY_PRIVATE => $uid));
}
-
return $success;
}