From bc8f659d06826a0c16a1bbe1fb9ce932fd6baa5f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= <schiessle@owncloud.com>
Date: Thu, 19 May 2016 16:19:13 +0200
Subject: [PATCH] add missung return value

---
 apps/federatedfilesharing/lib/FederatedShareProvider.php | 7 ++++---
 1 file 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;
 	}
 
 	/**
-- 
GitLab