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/private/Federation | |
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/private/Federation')
-rw-r--r-- | lib/private/Federation/CloudFederationProviderManager.php | 3 |
1 files changed, 2 insertions, 1 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) { |