From c5c6f3eaf139adc1ae6dd6ec73cf86743fcbe9b6 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: 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(+) (limited to 'apps/federatedfilesharing/lib') diff --git a/apps/federatedfilesharing/lib/Notifications.php b/apps/federatedfilesharing/lib/Notifications.php index f0d50a25abe..2471d53c84e 100644 --- a/apps/federatedfilesharing/lib/Notifications.php +++ b/apps/federatedfilesharing/lib/Notifications.php @@ -261,6 +261,7 @@ class Notifications { $status = json_decode($result['result'], true); if ($result['success'] && + isset($status['ocs']['meta']['statuscode']) && ($status['ocs']['meta']['statuscode'] === 100 || $status['ocs']['meta']['statuscode'] === 200 ) -- cgit v1.2.3