diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2023-08-07 23:11:49 +0200 |
---|---|---|
committer | Daniel <mail@danielkesselberg.de> | 2023-08-14 17:57:17 +0200 |
commit | c5c6f3eaf139adc1ae6dd6ec73cf86743fcbe9b6 (patch) | |
tree | eb5a19ecfeb9e2187e511032acd55bfe904fa0cd /apps/federatedfilesharing | |
parent | 2ea6c5364dfd672576824b65c1120c17b8c25c0f (diff) | |
download | nextcloud-server-c5c6f3eaf139adc1ae6dd6ec73cf86743fcbe9b6.tar.gz nextcloud-server-c5c6f3eaf139adc1ae6dd6ec73cf86743fcbe9b6.zip |
fix: don't try to access null array
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Diffstat (limited to 'apps/federatedfilesharing')
-rw-r--r-- | apps/federatedfilesharing/lib/Notifications.php | 1 |
1 files changed, 1 insertions, 0 deletions
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 ) |