]> source.dussan.org Git - nextcloud-server.git/commitdiff
don't store empty groupids
authorJörn Friedrich Dreyer <jfd@butonic.de>
Thu, 2 Mar 2017 10:36:20 +0000 (11:36 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Mon, 20 Mar 2017 04:01:37 +0000 (22:01 -0600)
gives an exception on oracle and shouldn't be added in the first place

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
lib/private/SystemTag/SystemTagManager.php

index 7c21c0e004eab91a8c2d2db985a7cf687c36b11a..d0854e885eb484828bacd9986145231224f83a27 100644 (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();
                        }