fix return type from send share
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
511a34b08f
commit
411bae5163
2 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -77,7 +77,7 @@ interface ICloudFederationProviderManager {
|
|||
* send federated share
|
||||
*
|
||||
* @param ICloudFederationShare $share
|
||||
* @return bool
|
||||
* @return mixed
|
||||
*
|
||||
* @since 14.0.0
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue