summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/kolab_sync_data_email.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kolab_sync_data_email.php b/lib/kolab_sync_data_email.php
index 5ccd031..4fb436a 100644
--- a/lib/kolab_sync_data_email.php
+++ b/lib/kolab_sync_data_email.php
@@ -579,13 +579,13 @@ class kolab_sync_data_email extends kolab_sync_data implements Syncroton_Data_ID
}
// Flag change
- if (empty($entry->flag)) {
+ if (empty($entry->flag) || empty($entry->flag->flagType)) {
if ($is_flagged) {
$this->storage->set_flag($msg['uid'], 'UNFLAGGED', $msg['foldername']);
}
}
else if (!$is_flagged && !empty($entry->flag)) {
- if ($entry->flag->flagType && preg_match('/^follow\s*up/i', $entry->flag->flagType)) {
+ if ($entry->flag->flagType && preg_match('/follow\s*up/i', $entry->flag->flagType)) {
$this->storage->set_flag($msg['uid'], 'FLAGGED', $msg['foldername']);
}
}