fix return type from send share

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
Bjoern Schiessle 2018-06-29 11:32:40 +02:00
parent 511a34b08f
commit 411bae5163
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
2 changed files with 3 additions and 2 deletions

View File

@ -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) {

View File

@ -77,7 +77,7 @@ interface ICloudFederationProviderManager {
* send federated share
*
* @param ICloudFederationShare $share
* @return bool
* @return mixed
*
* @since 14.0.0
*/