Skip to content

Commit

Permalink
fix: don't try to access null array
Browse files Browse the repository at this point in the history
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
  • Loading branch information
solracsf authored and kesselb committed Aug 8, 2023
1 parent b155f87 commit 0365f0a
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 0365f0a

Please sign in to comment.