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:
parent
528a903a7b
commit
4e1aca4e3c
|
@ -400,6 +400,9 @@ class SystemTagManager implements ISystemTagManager {
|
||||||
'gid' => $query->createParameter('gid'),
|
'gid' => $query->createParameter('gid'),
|
||||||
]);
|
]);
|
||||||
foreach ($groupIds as $groupId) {
|
foreach ($groupIds as $groupId) {
|
||||||
|
if ($groupId === '') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$query->setParameter('gid', $groupId);
|
$query->setParameter('gid', $groupId);
|
||||||
$query->execute();
|
$query->execute();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue