summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_sharing/api/share20ocs.php2
-rw-r--r--apps/files_sharing/tests/api/share20ocstest.php2
2 files changed, 2 insertions, 2 deletions
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.');
}
diff --git a/apps/files_sharing/tests/api/share20ocstest.php b/apps/files_sharing/tests/api/share20ocstest.php
index a93cd5f58ce..97abdca7ac3 100644
--- a/apps/files_sharing/tests/api/share20ocstest.php
+++ b/apps/files_sharing/tests/api/share20ocstest.php
@@ -387,7 +387,7 @@ class Share20OCSTest extends \Test\TestCase {
['group', $group],
]));
- $expected = new \OC_OCS_Result($result);
+ $expected = new \OC_OCS_Result([$result]);
$this->assertEquals($expected->getData(), $ocs->getShare($share->getId())->getData());
}