Use "convertForUriId" whenever possible

This commit is contained in:
Michael 2023-07-16 10:37:33 +00:00
parent a52fa4dfb0
commit f4110880a1
8 changed files with 21 additions and 19 deletions

View file

@ -1267,7 +1267,7 @@ function tumblr_get_contact_by_url(string $url): ?array
return null;
}
if (is_array($data->response->blog)) {
if (is_array($data->response->blog) || empty($data->response->blog)) {
Logger::warning('Unexpected blog format', ['blog' => $blog, 'data' => $data]);
return null;
}