Skip to content

Commit

Permalink
Merge pull request #39743 from nextcloud/fixNullArray
Browse files Browse the repository at this point in the history
fix: Don't try to access null array
  • Loading branch information
solracsf committed Oct 27, 2023
2 parents 01bb3ef + c5c6f3e commit 60e0322
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/federatedfilesharing/lib/Notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ public function sendUpdateToRemote($remote, $remoteId, $token, $action, $data =
$status = json_decode($result['result'], true);

if ($result['success'] &&
isset($status['ocs']['meta']['statuscode']) &&
($status['ocs']['meta']['statuscode'] === 100 ||
$status['ocs']['meta']['statuscode'] === 200
)
Expand Down

0 comments on commit 60e0322

Please sign in to comment.