Improve code
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
389c2095a6
commit
de8e02628e
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue