diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/systemtag/systemtagobjectmapper.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/systemtag/systemtagobjectmapper.php b/lib/private/systemtag/systemtagobjectmapper.php index 586351cf8c1..412842b69e3 100644 --- a/lib/private/systemtag/systemtagobjectmapper.php +++ b/lib/private/systemtag/systemtagobjectmapper.php @@ -64,6 +64,8 @@ class SystemTagObjectMapper implements ISystemTagObjectMapper { public function getTagIdsForObjects($objIds, $objectType) { if (!is_array($objIds)) { $objIds = [$objIds]; + } else if (empty($objIds)) { + return []; } $query = $this->connection->getQueryBuilder(); |