diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2017-03-20 08:48:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-20 08:48:09 +0100 |
commit | 81647a58db28aa332c4e6c73c99b37ca548fed2b (patch) | |
tree | 42daf28739ac498870a146b9beae56c529a8d17e /lib/private | |
parent | bd3d57be63779f462f85dfda760bdec3a89cd36d (diff) | |
parent | c96486cfaec95d75a8bb9069481528982ec1b98f (diff) | |
download | nextcloud-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.php | 3 |
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(); } |