Skip to content

Commit 4ad8b08

Browse files
committed
update population
1 parent 0640a3c commit 4ad8b08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Table/Population.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ class Population extends PopulationTable
1313
{
1414
public function getCollection(?int $startIndex = null, ?int $count = null): Model\PopulationCollection
1515
{
16-
if (empty($startIndex) || $startIndex < 0) {
16+
if ($startIndex === null || $startIndex < 0) {
1717
$startIndex = 0;
1818
}
1919

20-
if (empty($count) || $count < 1 || $count > 1024) {
20+
if ($count === null || $count < 1 || $count > 1024) {
2121
$count = 16;
2222
}
2323

0 commit comments

Comments
 (0)