From: Hypolite Petovan Date: Wed, 11 Dec 2019 13:48:44 +0000 (-0500) Subject: Log a message when data isn't the expected type in GContact::updateFromOutbox X-Git-Url: https://git.mxchange.org/?p=friendica.git;a=commitdiff_plain;h=e976bc0668f3bbd7518a5a0c37d9583688965683 Log a message when data isn't the expected type in GContact::updateFromOutbox --- 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 = [];