Skip to content

Commit 2bad5b8

Browse files
committed
Correctly check the reception of a remote feedback
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 parent 745543d commit 2bad5b8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/files_sharing/lib/External/Manager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ public function processNotification($remoteShare) {
365365
private function sendFeedbackToRemote($remote, $token, $remoteId, $feedback) {
366366
$result = $this->tryOCMEndPoint($remote, $token, $remoteId, $feedback);
367367

368-
if ($result === true) {
368+
if (is_array($result) || $result === true) {
369369
return true;
370370
}
371371

@@ -401,7 +401,7 @@ private function sendFeedbackToRemote($remote, $token, $remoteId, $feedback) {
401401
* @param string $token
402402
* @param string $remoteId id of the share
403403
* @param string $feedback
404-
* @return bool
404+
* @return mixed
405405
*/
406406
protected function tryOCMEndPoint($remoteDomain, $token, $remoteId, $feedback) {
407407
switch ($feedback) {

0 commit comments

Comments
 (0)