summaryrefslogtreecommitdiff
path: root/plugins/tasklist/tasklist.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/tasklist/tasklist.php')
-rw-r--r--plugins/tasklist/tasklist.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/tasklist/tasklist.php b/plugins/tasklist/tasklist.php
index e77bccc..94cf4bb 100644
--- a/plugins/tasklist/tasklist.php
+++ b/plugins/tasklist/tasklist.php
@@ -387,6 +387,11 @@ class tasklist extends rcube_plugin
}
}
+ // convert tags to array, filter out empty entries
+ if (isset($rec['tags']) && !is_array($rec['tags'])) {
+ $rec['tags'] = array_filter((array)$rec['tags']);
+ }
+
// alarms cannot work without a date
if ($rec['alarms'] && !$rec['date'] && !$rec['startdate'] && strpos($rec['alarms'], '@') === false)
$rec['alarms'] = '';