From 4e1aca4e3c77d71913a512332a5b3d99f291a223 Mon Sep 17 00:00:00 2001 From: Jörn Friedrich Dreyer Date: Thu, 2 Mar 2017 11:36:20 +0100 Subject: don't store empty groupids gives an exception on oracle and shouldn't be added in the first place Signed-off-by: Morris Jobke --- lib/private/SystemTag/SystemTagManager.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/private') diff --git a/lib/private/SystemTag/SystemTagManager.php b/lib/private/SystemTag/SystemTagManager.php index 7c21c0e004e..d0854e885eb 100644 --- a/lib/private/SystemTag/SystemTagManager.php +++ b/lib/private/SystemTag/SystemTagManager.php @@ -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(); } -- cgit v1.2.3