Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
Showing only changes of commit 825e0c1a90 - Show all commits

View File

@ -105,7 +105,7 @@ class MangaListTransformer extends AbstractTransformer {
'notes' => $item['notes'], 'notes' => $item['notes'],
]; ];
if ($item['new_rating'] !== $item['old_rating']) if ($item['new_rating'] !== $item['old_rating'] && ! empty($item['new_rating']))
{ {
$map['rating'] = ($item['new_rating'] > 0) $map['rating'] = ($item['new_rating'] > 0)
? $item['new_rating'] / 2 ? $item['new_rating'] / 2