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:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-12-02 22:05:12 +0300
committerGitHub <noreply@github.com>2020-12-02 22:05:12 +0300
commit26c8580fdd8321991135744dac60094b247d7ac0 (patch)
tree61d13ccd8c8beadd47424b1dbde1a785f3f78481
parentbc683ae153eed176207af0c327f9526132c3540f (diff)
parent7d969806ec9b72a30494540bea39fa49905105bd (diff)
Merge pull request #803 from nextcloud/backport/802/stable20v20.0.3RC2v20.0.3
[stable20] Don't log when unknown array is null
-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) {