Browse Source

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>
tags/v12.0.0beta1
Jörn Friedrich Dreyer 7 years ago
parent
commit
4e1aca4e3c
No account linked to committer's email address
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      lib/private/SystemTag/SystemTagManager.php

+ 3
- 0
lib/private/SystemTag/SystemTagManager.php 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();
}

Loading…
Cancel
Save