Use "convertForUriId" whenever possible
This commit is contained in:
parent
a52fa4dfb0
commit
f4110880a1
8 changed files with 21 additions and 19 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue