From ca32778975323e743f0a0c7c548d44e283eb6813 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 8 Feb 2016 10:11:22 +0100 Subject: Even single shares are returned as array When fetching a single share using ../shares/ we should still return an array of shares. Fixes #22189 --- apps/files_sharing/api/share20ocs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_sharing/api') diff --git a/apps/files_sharing/api/share20ocs.php b/apps/files_sharing/api/share20ocs.php index d7c5d004d9c..c03243d1d41 100644 --- a/apps/files_sharing/api/share20ocs.php +++ b/apps/files_sharing/api/share20ocs.php @@ -170,7 +170,7 @@ class Share20OCS { if ($this->canAccessShare($share)) { $share = $this->formatShare($share); - return new \OC_OCS_Result($share); + return new \OC_OCS_Result([$share]); } else { return new \OC_OCS_Result(null, 404, 'wrong share ID, share doesn\'t exist.'); } -- cgit v1.2.3