summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-11-27 12:54:31 +0100
committerVincent Petry <pvince81@owncloud.com>2015-12-03 15:23:21 +0100
commitcc72c6a30dc12b49dec907cd2fcd01766dbda4c1 (patch)
treee173383453b41ad1493c29b07d14c43c9957f4bc /lib
parent2d1cc8aaebc567cc006d387921c7fbbed35280ce (diff)
downloadnextcloud-server-cc72c6a30dc12b49dec907cd2fcd01766dbda4c1.tar.gz
nextcloud-server-cc72c6a30dc12b49dec907cd2fcd01766dbda4c1.zip
Added dav endpoints for system tags
Diffstat (limited to 'lib')
-rw-r--r--lib/private/systemtag/systemtagobjectmapper.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/systemtag/systemtagobjectmapper.php b/lib/private/systemtag/systemtagobjectmapper.php
index 75f2631a010..bb64a35456f 100644
--- a/lib/private/systemtag/systemtagobjectmapper.php
+++ b/lib/private/systemtag/systemtagobjectmapper.php
@@ -171,6 +171,10 @@ class SystemTagObjectMapper implements ISystemTagObjectMapper {
public function haveTag($objIds, $objectType, $tagId, $all = true) {
$this->assertTagsExist([$tagId]);
+ if (!is_array($objIds)) {
+ $objIds = [$objIds];
+ }
+
$query = $this->connection->getQueryBuilder();
if (!$all) {