1
0
Fork 0

Log a message when data isn't the expected type in GContact::updateFromOutbox

This commit is contained in:
Hypolite Petovan 2019-12-11 08:48:44 -05:00
parent 97b0175e55
commit e976bc0668

View file

@ -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 = [];