Skip to content

Commit

Permalink
don't store empty groupids
Browse files Browse the repository at this point in the history
gives an exception on oracle and shouldn't be added in the first place

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
  • Loading branch information
butonic authored and MorrisJobke committed Mar 20, 2017
1 parent 528a903 commit 4e1aca4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/private/SystemTag/SystemTagManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,9 @@ public function setTagGroups(ISystemTag $tag, $groupIds) {
'gid' => $query->createParameter('gid'),
]);
foreach ($groupIds as $groupId) {
if ($groupId === '') {
continue;
}
$query->setParameter('gid', $groupId);
$query->execute();
}
Expand Down

0 comments on commit 4e1aca4

Please sign in to comment.