summaryrefslogtreecommitdiff
path: root/plugins/libkolab/lib/kolab_storage_config.php
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-10-13 12:55:50 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-10-13 12:55:50 (GMT)
commitef7f457c025545df77996f948398d52544b11b26 (patch)
tree4ebe0a2a63d3ecf3d6d97cd635804d73343400f2 /plugins/libkolab/lib/kolab_storage_config.php
parent6f0ef60f7a15162bdb7052c73bbb2fd515ae773c (diff)
downloadroundcubemail-plugins-kolab-ef7f457c025545df77996f948398d52544b11b26.tar.gz
Bugfixes for recent refactoring
Diffstat (limited to 'plugins/libkolab/lib/kolab_storage_config.php')
-rw-r--r--plugins/libkolab/lib/kolab_storage_config.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/libkolab/lib/kolab_storage_config.php b/plugins/libkolab/lib/kolab_storage_config.php
index 22fb90c..915e25c 100644
--- a/plugins/libkolab/lib/kolab_storage_config.php
+++ b/plugins/libkolab/lib/kolab_storage_config.php
@@ -722,7 +722,7 @@ class kolab_storage_config
}
// create a new relation
- if (!$done) {
+ if (!$done && !empty($links)) {
$relation = array(
'members' => array_merge($links, array($object_uri)),
'category' => 'generic',
@@ -775,7 +775,7 @@ class kolab_storage_config
// derive message identifier from URI
$member_id = md5($uri);
}
- array('member', '=', $member_id);
+ $filter[] = array('member', '=', $member_id);
// get UIDs of assigned notes
foreach ($this->get_objects($filter, $default) as $relation) {