summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-08-25 19:54:50 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-08-25 19:54:50 (GMT)
commit9899d1e67e7acb939d052ef9c6834f71b4980057 (patch)
treeb0b23a5970a42910a79c0e004f84a59c673deda2
parent3b01dbdc119d3f85c412e648c4c7b0db4ea10706 (diff)
downloadkolab-syncroton-9899d1e67e7acb939d052ef9c6834f71b4980057.tar.gz
Fix Flag element handling on updates (again).
There was still an issue with that. In case when flagged message was read on a device the read status was updated but also the flag was removed.
-rw-r--r--lib/kolab_sync_data_email.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kolab_sync_data_email.php b/lib/kolab_sync_data_email.php
index 5b2268e..03d1f78 100644
--- a/lib/kolab_sync_data_email.php
+++ b/lib/kolab_sync_data_email.php
@@ -579,7 +579,7 @@ class kolab_sync_data_email extends kolab_sync_data implements Syncroton_Data_ID
}
// Flag change
- if (empty($entry->flag) || empty($entry->flag->flagType)) {
+ if (isset($entry->flag) && (empty($entry->flag) || empty($entry->flag->flagType))) {
if ($is_flagged) {
$this->storage->set_flag($msg['uid'], 'UNFLAGGED', $msg['foldername']);
}