Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
Showing only changes of commit b346bdf337 - 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'] && ! empty($item['new_rating'])) if ($item['new_rating'] !== $item['old_rating'] && $item['new_rating'] !== "")
{ {
$map['rating'] = ($item['new_rating'] > 0) $map['rating'] = ($item['new_rating'] > 0)
? $item['new_rating'] / 2 ? $item['new_rating'] / 2