From 2b46dedb9a8ed30fc7a26d867ac11210c7f5af8a 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 )