Browse Source

fix return type from send share

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
tags/v14.0.0beta1
Bjoern Schiessle 6 years ago
parent
commit
411bae5163
No account linked to committer's email address

+ 2
- 1
lib/private/Federation/CloudFederationProviderManager.php View File

]); ]);


if ($response->getStatusCode() === Http::STATUS_CREATED) { if ($response->getStatusCode() === Http::STATUS_CREATED) {
return true;
$result = json_decode($response->getBody(), true);
return (is_array($result)) ? $result : [];
} }


} catch (\Exception $e) { } catch (\Exception $e) {

+ 1
- 1
lib/public/Federation/ICloudFederationProviderManager.php View File

* send federated share * send federated share
* *
* @param ICloudFederationShare $share * @param ICloudFederationShare $share
* @return bool
* @return mixed
* *
* @since 14.0.0 * @since 14.0.0
*/ */

Loading…
Cancel
Save