Fix aggregation of anime watch history items
This commit is contained in:
parent
5a3d9547ae
commit
2325c8f4ec
@ -2,10 +2,12 @@
|
|||||||
|
|
||||||
## Version 5
|
## Version 5
|
||||||
* Updated PHP requirement to 7.4
|
* Updated PHP requirement to 7.4
|
||||||
|
* Added anime history view
|
||||||
|
|
||||||
## Version 4.2
|
## Version 4.2
|
||||||
* Updated dependencies
|
* Updated dependencies
|
||||||
* Updated PHP requirement to 7.3
|
* Updated PHP requirement to 7.3
|
||||||
|
* Added option to automatically set dark mode based on the OS setting
|
||||||
|
|
||||||
## Version 4.1
|
## Version 4.1
|
||||||
* Added optional dark theme
|
* Added optional dark theme
|
||||||
|
@ -69,12 +69,12 @@ class AnimeHistoryTransformer {
|
|||||||
protected function aggregate (array $singles): array
|
protected function aggregate (array $singles): array
|
||||||
{
|
{
|
||||||
$output = [];
|
$output = [];
|
||||||
$prevTitle = '';
|
|
||||||
|
|
||||||
$count = count($singles);
|
$count = count($singles);
|
||||||
for ($i = 0; $i < $count; $i++)
|
for ($i = 0; $i < $count; $i++)
|
||||||
{
|
{
|
||||||
$entry = $singles[$i];
|
$entry = $singles[$i];
|
||||||
|
$prevTitle = $entry['title'];
|
||||||
$nextId = $i + 1;
|
$nextId = $i + 1;
|
||||||
if ($nextId < $count)
|
if ($nextId < $count)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user