From f3e27791dd2f1b7a31342a108a9a5c6e209c0f5b Mon Sep 17 00:00:00 2001 From: Git'Fellow <12234510+solracsf@users.noreply.github.com> Date: Mon, 7 Aug 2023 23:11:49 +0200 Subject: [PATCH] fix: don't try to access null array Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> --- apps/federatedfilesharing/lib/Notifications.php | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/federatedfilesharing/lib/Notifications.php b/apps/federatedfilesharing/lib/Notifications.php index 2a162abcd76ba..77a933796daac 100644 --- a/apps/federatedfilesharing/lib/Notifications.php +++ b/apps/federatedfilesharing/lib/Notifications.php @@ -293,6 +293,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 )