Merge pull request #41146 from nextcloud/backport/39743/stable26

[stable26] fix: Don't try to access null array
This commit is contained in:
Ferdinand Thiessen 2023-10-30 16:26:11 +01:00 committed by GitHub
commit ffdb18620e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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
)