]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: don't try to access null array 41146/head
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>
Mon, 7 Aug 2023 21:11:49 +0000 (23:11 +0200)
committerFerdinand Thiessen <opensource@fthiessen.de>
Mon, 30 Oct 2023 10:03:26 +0000 (11:03 +0100)
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
apps/federatedfilesharing/lib/Notifications.php

index 2a162abcd76ba9865e05435bfe86a832beedcbca..77a933796daac32ad074e170a30f2609e7a9eff6 100644 (file)
@@ -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
                        )