summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Connector/Sabre
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-03-13 23:01:47 +0100
committerMorris Jobke <hey@morrisjobke.de>2019-03-13 23:01:47 +0100
commitde8e02628efa546c66f88b49516e2c21b79c27d8 (patch)
treeb8e45ab91c583a4b6f302f1afe36e4442b5eaa10 /apps/dav/lib/Connector/Sabre
parent389c2095a6130f16f02ca72e09712596e0e48551 (diff)
downloadnextcloud-server-de8e02628efa546c66f88b49516e2c21b79c27d8.tar.gz
nextcloud-server-de8e02628efa546c66f88b49516e2c21b79c27d8.zip
Improve code
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/dav/lib/Connector/Sabre')
-rw-r--r--apps/dav/lib/Connector/Sabre/FilesReportPlugin.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
index 6451030c324..d679fa307c2 100644
--- a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
@@ -358,8 +358,8 @@ class FilesReportPlugin extends ServerPlugin {
* @return array
*/
private function getCirclesFileIds(array $circlesIds) {
- if (!$this->appManager->isEnabledForUser('circles') || !class_exists('\OCA\Circles\ShareByCircleProvider')) {
- return array();
+ if (!$this->appManager->isEnabledForUser('circles') || !class_exists('\OCA\Circles\Api\v1\Circles')) {
+ return [];
}
return \OCA\Circles\Api\v1\Circles::getFilesForCircles($circlesIds);
}