Version 5.1 - All the GraphQL #32

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

View File

@ -105,7 +105,7 @@ class MangaListTransformer extends AbstractTransformer {
'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)
? $item['new_rating'] / 2