diff options
author | Björn Schießle <schiessle@owncloud.com> | 2016-05-19 16:19:13 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2016-05-20 21:15:16 +0200 |
commit | bc8f659d06826a0c16a1bbe1fb9ce932fd6baa5f (patch) | |
tree | 65efc0119e97a1c60a77a611d9f6997835139773 /apps/federatedfilesharing/lib | |
parent | 06b6e2bff57ff35a3190c5d4bf881c494f9a9459 (diff) | |
download | nextcloud-server-bc8f659d06826a0c16a1bbe1fb9ce932fd6baa5f.tar.gz nextcloud-server-bc8f659d06826a0c16a1bbe1fb9ce932fd6baa5f.zip |
add missung return value
Diffstat (limited to 'apps/federatedfilesharing/lib')
-rw-r--r-- | apps/federatedfilesharing/lib/FederatedShareProvider.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/federatedfilesharing/lib/FederatedShareProvider.php b/apps/federatedfilesharing/lib/FederatedShareProvider.php index 8167a66983b..76fed01c308 100644 --- a/apps/federatedfilesharing/lib/FederatedShareProvider.php +++ b/apps/federatedfilesharing/lib/FederatedShareProvider.php @@ -179,7 +179,7 @@ class FederatedShareProvider implements IShareProvider { // fall back to old re-share behavior if the remote server // doesn't support flat re-shares (was introduced with ownCloud 9.1) $this->removeShareFromTable($share); - $this->createFederatedShare($share); + $shareId = $this->createFederatedShare($share); } if ($send) { $this->updateSuccessfulReshare($shareId, $token); @@ -191,7 +191,7 @@ class FederatedShareProvider implements IShareProvider { } } else { - $this->createFederatedShare($share); + $shareId = $this->createFederatedShare($share); } $data = $this->getRawShare($shareId); @@ -202,7 +202,7 @@ class FederatedShareProvider implements IShareProvider { * create federated share and inform the recipient * * @param IShare $share - * @return array + * @return int * @throws ShareNotFound * @throws \Exception */ @@ -241,6 +241,7 @@ class FederatedShareProvider implements IShareProvider { throw new \Exception($message_t); } + return $shareId; } /** |