aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2023-10-27 08:07:42 +0200
committerGitHub <noreply@github.com>2023-10-27 08:07:42 +0200
commit60e0322365ca3b38d82ab103d92a8aed97882adc (patch)
tree6e9b5229e7f290fc241dcf661445e8f1b2732222 /apps/federatedfilesharing
parent01bb3efe238cecf5075a5030719d3b0a726dfe51 (diff)
parentc5c6f3eaf139adc1ae6dd6ec73cf86743fcbe9b6 (diff)
downloadnextcloud-server-60e0322365ca3b38d82ab103d92a8aed97882adc.tar.gz
nextcloud-server-60e0322365ca3b38d82ab103d92a8aed97882adc.zip
Merge pull request #39743 from nextcloud/fixNullArray
fix: Don't try to access null array
Diffstat (limited to 'apps/federatedfilesharing')
-rw-r--r--apps/federatedfilesharing/lib/Notifications.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/federatedfilesharing/lib/Notifications.php b/apps/federatedfilesharing/lib/Notifications.php
index b2da4cb3e28..643604b98b7 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
)