summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/systemtags/lib/Activity/Listener.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/systemtags/lib/Activity/Listener.php b/apps/systemtags/lib/Activity/Listener.php
index 3b3d3b49662..ab897f3037a 100644
--- a/apps/systemtags/lib/Activity/Listener.php
+++ b/apps/systemtags/lib/Activity/Listener.php
@@ -245,7 +245,7 @@ class Listener {
$lastUsedTags = json_decode($lastUsedTags, true);
array_unshift($lastUsedTags, $tag->getId());
- array_unique($lastUsedTags);
+ $lastUsedTags = array_unique($lastUsedTags);
$lastUsedTags = array_slice($lastUsedTags, 0, 10);
$this->config->setUserValue($actor, 'systemtags', 'last_used', json_encode($lastUsedTags));