Fixes issue #9
This commit is contained in:
parent
ecf3bce14b
commit
12d05dd71a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user