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 <[email protected]>
  • Loading branch information
solracsf authored and kesselb committed Aug 14, 2023
1 parent 2ea6c53 commit c5c6f3e
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 c5c6f3e

Please sign in to comment.