summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2017-03-20 08:48:10 +0100
committerGitHub <noreply@github.com>2017-03-20 08:48:09 +0100
commit81647a58db28aa332c4e6c73c99b37ca548fed2b (patch)
tree42daf28739ac498870a146b9beae56c529a8d17e /lib/private
parentbd3d57be63779f462f85dfda760bdec3a89cd36d (diff)
parentc96486cfaec95d75a8bb9069481528982ec1b98f (diff)
downloadnextcloud-server-81647a58db28aa332c4e6c73c99b37ca548fed2b.tar.gz
nextcloud-server-81647a58db28aa332c4e6c73c99b37ca548fed2b.zip
Merge pull request #3931 from nextcloud/downstream-27295
Don't store empty groupids
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/SystemTag/SystemTagManager.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/SystemTag/SystemTagManager.php b/lib/private/SystemTag/SystemTagManager.php
index 7c21c0e004e..d0854e885eb 100644
--- a/lib/private/SystemTag/SystemTagManager.php
+++ b/lib/private/SystemTag/SystemTagManager.php
@@ -400,6 +400,9 @@ class SystemTagManager implements ISystemTagManager {
'gid' => $query->createParameter('gid'),
]);
foreach ($groupIds as $groupId) {
+ if ($groupId === '') {
+ continue;
+ }
$query->setParameter('gid', $groupId);
$query->execute();
}