don't store empty groupids

gives an exception on oracle and shouldn't be added in the first place

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Jörn Friedrich Dreyer 2017-03-02 11:36:20 +01:00 committed by Morris Jobke
parent 528a903a7b
commit 4e1aca4e3c
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
1 changed files with 3 additions and 0 deletions

View File

@ -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();
}