Bugfix for manga pages without characters
This commit is contained in:
parent
501062ac37
commit
e8aa2bd42b
@ -54,11 +54,14 @@ final class MangaTransformer extends AbstractTransformer
|
|||||||
}
|
}
|
||||||
|
|
||||||
$details = $rawCharacter['character'];
|
$details = $rawCharacter['character'];
|
||||||
$characters[$type][$details['id']] = [
|
if (array_key_exists($details['id'], $characters[$type]))
|
||||||
'image' => $details['image']['original']['url'],
|
{
|
||||||
'name' => $details['names']['canonical'],
|
$characters[$type][$details['id']] = [
|
||||||
'slug' => $details['slug'],
|
'image' => $details['image']['original']['url'],
|
||||||
];
|
'name' => $details['names']['canonical'],
|
||||||
|
'slug' => $details['slug'],
|
||||||
|
];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (array_keys($characters) as $type)
|
foreach (array_keys($characters) as $type)
|
||||||
|
Loading…
Reference in New Issue
Block a user