Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fixing error
Browse files Browse the repository at this point in the history
  • Loading branch information
ghecquet committed Feb 25, 2016
1 parent 55fbc73 commit ed5cfb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/plugins/core.ocs/src/Client/OCSClient.php
Expand Up @@ -47,7 +47,7 @@ public function sendInvitation(ShareInvitation $invitation)
'base_url' => $invitation->getTargetHost()
]);

$endpoints = self::findEndpointsForServer($client);
$endpoints = self::findEndpointsForClient($client);

$response = $client->post($endpoints['shares'], [
'body' => [
Expand Down Expand Up @@ -82,7 +82,7 @@ public function cancelInvitation(ShareInvitation $invitation)
'base_url' => $invitation->getTargetHost()
]);

$endpoints = self::findEndpointsForServer($client);
$endpoints = self::findEndpointsForClient($client);

$response = $client->post($endpoints['shares'] . '/' . $invitation->getId() . '/unshare', [
'body' => [
Expand Down

0 comments on commit ed5cfb6

Please sign in to comment.