summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/tasklist/tasklist.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/tasklist/tasklist.php b/plugins/tasklist/tasklist.php
index 6ebddc4..9d5544c 100644
--- a/plugins/tasklist/tasklist.php
+++ b/plugins/tasklist/tasklist.php
@@ -605,6 +605,10 @@ class tasklist extends rcube_plugin
$rec['attachments'][$k]['classname'] = rcube_utils::file2class($attachment['mimetype'], $attachment['name']);
}
+ if (!is_array($rec['tags']))
+ $rec['tags'] = (array)$rec['tags'];
+ sort($rec['tags'], SORT_LOCALE_STRING);
+
if (in_array($rec['id'], $this->collapsed_tasks))
$rec['collapsed'] = true;