Skip to content

Commit 3e7be4e

Browse files
fix: don't try to access null array
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
1 parent 290037d commit 3e7be4e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/federatedfilesharing/lib/Notifications.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ public function sendUpdateToRemote($remote, $remoteId, $token, $action, $data =
293293
$status = json_decode($result['result'], true);
294294

295295
if ($result['success'] &&
296+
isset($status['ocs']['meta']['statuscode']) &&
296297
($status['ocs']['meta']['statuscode'] === 100 ||
297298
$status['ocs']['meta']['statuscode'] === 200
298299
)

0 commit comments

Comments
 (0)