Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Push.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Push.php b/lib/Push.php
index 18efc57..902f414 100644
--- a/lib/Push.php
+++ b/lib/Push.php
@@ -318,7 +318,7 @@ class Push {
$body = $response->getBody();
$bodyData = json_decode($body, true);
- if (is_array($bodyData) && isset($bodyData['unknown'], $bodyData['failed'])) {
+ if (is_array($bodyData) && array_key_exists('unknown', $bodyData) && array_key_exists('failed', $bodyData)) {
if (is_array($bodyData['unknown'])) {
// Proxy returns null when the array is empty
foreach ($bodyData['unknown'] as $unknownDevice) {