summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2023-10-30 11:03:07 +0100
committerGitHub <noreply@github.com>2023-10-30 11:03:07 +0100
commita8855315d11bfa77135da6335f82f595e216fd06 (patch)
tree4bdf5d9e4b752733d4d471a1c36b66bfebad01de
parent19c4fca0cc7ec6619a96f820398478bc0c49819d (diff)
parentf3e27791dd2f1b7a31342a108a9a5c6e209c0f5b (diff)
downloadnextcloud-server-a8855315d11bfa77135da6335f82f595e216fd06.tar.gz
nextcloud-server-a8855315d11bfa77135da6335f82f595e216fd06.zip
Merge pull request #41147 from nextcloud/backport/39743/stable27
[stable27] fix: Don't try to access null array
-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 2a162abcd76..77a933796da 100644
--- a/apps/federatedfilesharing/lib/Notifications.php
+++ b/apps/federatedfilesharing/lib/Notifications.php
@@ -293,6 +293,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
)