Skip to content
Snippets Groups Projects
Unverified Commit bc8f659d authored by Björn Schießle's avatar Björn Schießle
Browse files

add missung return value

parent 06b6e2bf
No related branches found
No related tags found
No related merge requests found
...@@ -179,7 +179,7 @@ class FederatedShareProvider implements IShareProvider { ...@@ -179,7 +179,7 @@ class FederatedShareProvider implements IShareProvider {
// fall back to old re-share behavior if the remote server // fall back to old re-share behavior if the remote server
// doesn't support flat re-shares (was introduced with ownCloud 9.1) // doesn't support flat re-shares (was introduced with ownCloud 9.1)
$this->removeShareFromTable($share); $this->removeShareFromTable($share);
$this->createFederatedShare($share); $shareId = $this->createFederatedShare($share);
} }
if ($send) { if ($send) {
$this->updateSuccessfulReshare($shareId, $token); $this->updateSuccessfulReshare($shareId, $token);
...@@ -191,7 +191,7 @@ class FederatedShareProvider implements IShareProvider { ...@@ -191,7 +191,7 @@ class FederatedShareProvider implements IShareProvider {
} }
} else { } else {
$this->createFederatedShare($share); $shareId = $this->createFederatedShare($share);
} }
$data = $this->getRawShare($shareId); $data = $this->getRawShare($shareId);
...@@ -202,7 +202,7 @@ class FederatedShareProvider implements IShareProvider { ...@@ -202,7 +202,7 @@ class FederatedShareProvider implements IShareProvider {
* create federated share and inform the recipient * create federated share and inform the recipient
* *
* @param IShare $share * @param IShare $share
* @return array * @return int
* @throws ShareNotFound * @throws ShareNotFound
* @throws \Exception * @throws \Exception
*/ */
...@@ -241,6 +241,7 @@ class FederatedShareProvider implements IShareProvider { ...@@ -241,6 +241,7 @@ class FederatedShareProvider implements IShareProvider {
throw new \Exception($message_t); throw new \Exception($message_t);
} }
return $shareId;
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment