Account for missing genres in anime collection
This commit is contained in:
parent
779d7263d0
commit
82520afa0e
@ -130,7 +130,12 @@ final class AnimeCollection extends Collection {
|
|||||||
|
|
||||||
foreach($rows as &$row)
|
foreach($rows as &$row)
|
||||||
{
|
{
|
||||||
$row['genres'] = $genres[$row['hummingbird_id']];
|
$id = $row['hummingbird_id'];
|
||||||
|
|
||||||
|
$row['genres'] = array_key_exists($id, $genres)
|
||||||
|
? $genres[$id]
|
||||||
|
: [];
|
||||||
|
|
||||||
sort($row['genres']);
|
sort($row['genres']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user