From e976bc0668f3bbd7518a5a0c37d9583688965683 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 11 Dec 2019 08:48:44 -0500 Subject: [PATCH] Log a message when data isn't the expected type in GContact::updateFromOutbox --- src/Model/GContact.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Model/GContact.php b/src/Model/GContact.php index 95f1080f8d..2caad94591 100644 --- a/src/Model/GContact.php +++ b/src/Model/GContact.php @@ -876,7 +876,11 @@ class GContact self::updateFromOutbox($outbox['first']['href'], $data); return; } elseif (!empty($outbox['first'])) { - self::updateFromOutbox($outbox['first'], $data); + if (is_string($outbox['first'])) { + self::updateFromOutbox($outbox['first'], $data); + } else { + Logger::warning('Unexpected data', ['outbox' => $outbox]); + } return; } else { $items = []; -- 2.39.5