Skip to content

Commit a885531

Browse files
authored
Merge pull request #41147 from nextcloud/backport/39743/stable27
[stable27] fix: Don't try to access null array
2 parents 19c4fca + f3e2779 commit a885531

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)