sforkowany z mirror/friendica
Merge pull request #7932 from MrPetovan/bug/fatal-errors
Log a message when data isn't the expected type in GContact::updateFromOutbox2022.09-rc
commit
9d626516d8
|
@ -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 = [];
|
||||
|
|
Ładowanie…
Reference in New Issue