Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
1 changed files with 6 additions and 1 deletions
Showing only changes of commit 82520afa0e - Show all commits

View File

@ -130,7 +130,12 @@ final class AnimeCollection extends Collection {
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']);
}