Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-02-14 19:02:54 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-02-14 19:02:54 +0300
commitaeb7503febbae7213a234e7b5b35d3291f78e2f8 (patch)
treed2b70edda9067413626d39033882a8cdf18bfc79 /apps/systemtags/lib
parent011dab246d7881d12be7c5a61895242735900489 (diff)
fix systemtags event with numeric user ids
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/systemtags/lib')
-rw-r--r--apps/systemtags/lib/Activity/Listener.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/systemtags/lib/Activity/Listener.php b/apps/systemtags/lib/Activity/Listener.php
index 766e08ee8c3..8c158410e4a 100644
--- a/apps/systemtags/lib/Activity/Listener.php
+++ b/apps/systemtags/lib/Activity/Listener.php
@@ -185,7 +185,7 @@ class Listener {
/** @var Node $node */
$node = array_shift($nodes);
$al = $this->shareHelper->getPathsForAccessList($node);
- $users = array_merge($users, $al['users']);
+ $users += $al['users'];
}
}
@@ -203,6 +203,7 @@ class Listener {
->setObject($event->getObjectType(), (int) $event->getObjectId());
foreach ($users as $user => $path) {
+ $user = (string)$user; // numerical ids could be ints which are not accepted everywhere
$activity->setAffectedUser($user);
foreach ($tags as $tag) {