diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2018-06-29 11:32:40 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2018-07-02 12:43:43 +0200 |
commit | 411bae51639b19d0a3ae122eda82dc872f276887 (patch) | |
tree | 1558dfb4097628b1e054193b0cf764955c582f4e /lib | |
parent | 511a34b08f3c66dd354dc188eec4cbca170ad6a9 (diff) | |
download | nextcloud-server-411bae51639b19d0a3ae122eda82dc872f276887.tar.gz nextcloud-server-411bae51639b19d0a3ae122eda82dc872f276887.zip |
fix return type from send share
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Federation/CloudFederationProviderManager.php | 3 | ||||
-rw-r--r-- | lib/public/Federation/ICloudFederationProviderManager.php | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Federation/CloudFederationProviderManager.php b/lib/private/Federation/CloudFederationProviderManager.php index 2776ad8cac8..10d28d0287d 100644 --- a/lib/private/Federation/CloudFederationProviderManager.php +++ b/lib/private/Federation/CloudFederationProviderManager.php @@ -145,7 +145,8 @@ class CloudFederationProviderManager implements ICloudFederationProviderManager ]); if ($response->getStatusCode() === Http::STATUS_CREATED) { - return true; + $result = json_decode($response->getBody(), true); + return (is_array($result)) ? $result : []; } } catch (\Exception $e) { diff --git a/lib/public/Federation/ICloudFederationProviderManager.php b/lib/public/Federation/ICloudFederationProviderManager.php index 94bbe3ed214..f1e932388bf 100644 --- a/lib/public/Federation/ICloudFederationProviderManager.php +++ b/lib/public/Federation/ICloudFederationProviderManager.php @@ -77,7 +77,7 @@ interface ICloudFederationProviderManager { * send federated share * * @param ICloudFederationShare $share - * @return bool + * @return mixed * * @since 14.0.0 */ |