diff options
author | Louis Chemineau <louis@chmn.me> | 2021-06-09 15:43:15 +0300 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2021-06-09 16:37:18 +0300 |
commit | ebf35fb38a770f26b5db4d6eebba18a28fa10dcd (patch) | |
tree | e66d9cec1fbd132293098430ed2dd6ff3cbd7083 /apps | |
parent | 745543d8c04c3e49515ebd9c89bed34312514862 (diff) |
Correctly check the reception of a remote feedback
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/federatedfilesharing/lib/Notifications.php | 2 | ||||
-rw-r--r-- | apps/files_sharing/lib/External/Manager.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/federatedfilesharing/lib/Notifications.php b/apps/federatedfilesharing/lib/Notifications.php index b3d41cde851..c72a0691fad 100644 --- a/apps/federatedfilesharing/lib/Notifications.php +++ b/apps/federatedfilesharing/lib/Notifications.php @@ -405,7 +405,7 @@ class Notifications { * @param $fields * @param $action * - * @return bool + * @return array|false */ protected function tryOCMEndPoint($remoteDomain, $fields, $action) { switch ($action) { diff --git a/apps/files_sharing/lib/External/Manager.php b/apps/files_sharing/lib/External/Manager.php index 720df28d107..e51bd64cf38 100644 --- a/apps/files_sharing/lib/External/Manager.php +++ b/apps/files_sharing/lib/External/Manager.php @@ -365,7 +365,7 @@ class Manager { private function sendFeedbackToRemote($remote, $token, $remoteId, $feedback) { $result = $this->tryOCMEndPoint($remote, $token, $remoteId, $feedback); - if ($result === true) { + if (is_array($result)) { return true; } @@ -401,7 +401,7 @@ class Manager { * @param string $token * @param string $remoteId id of the share * @param string $feedback - * @return bool + * @return array|false */ protected function tryOCMEndPoint($remoteDomain, $token, $remoteId, $feedback) { switch ($feedback) { |