summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/lib
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2023-08-07 23:11:49 +0200
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2023-10-27 06:54:25 +0000
commitf3e27791dd2f1b7a31342a108a9a5c6e209c0f5b (patch)
tree5aa811355a30a5eb318527cf70b1826b8f68c60e /apps/federatedfilesharing/lib
parentabbad7bc53848c50c3e1e7ae685b80b2ad3db6c8 (diff)
downloadnextcloud-server-f3e27791dd2f1b7a31342a108a9a5c6e209c0f5b.tar.gz
nextcloud-server-f3e27791dd2f1b7a31342a108a9a5c6e209c0f5b.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/lib')
-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
)