mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-23 04:18:50 +00:00
Update code
This commit is contained in:
@@ -477,7 +477,7 @@ class GroupCollector implements GroupCollectorInterface
|
||||
}
|
||||
// OR filter the array according to the start and end row variable
|
||||
if (null !== $this->startRow && null !== $this->endRow) {
|
||||
return $collection->slice((int)$this->startRow, (int)$this->endRow);
|
||||
return $collection->slice($this->startRow, $this->endRow);
|
||||
}
|
||||
|
||||
return $collection;
|
||||
@@ -493,7 +493,7 @@ class GroupCollector implements GroupCollectorInterface
|
||||
$this->setLimit(50);
|
||||
}
|
||||
if(null !== $this->startRow && null !== $this->endRow) {
|
||||
$total = (int)($this->endRow - $this->startRow);
|
||||
$total = $this->endRow - $this->startRow;
|
||||
|
||||
return new LengthAwarePaginator($set, $this->total, $total, 1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user