Skip to content

Commit

Permalink
update population
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Feb 13, 2024
1 parent 0640a3c commit 4ad8b08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Table/Population.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ class Population extends PopulationTable
{
public function getCollection(?int $startIndex = null, ?int $count = null): Model\PopulationCollection
{
if (empty($startIndex) || $startIndex < 0) {
if ($startIndex === null || $startIndex < 0) {
$startIndex = 0;
}

if (empty($count) || $count < 1 || $count > 1024) {
if ($count === null || $count < 1 || $count > 1024) {
$count = 16;
}

Expand Down

0 comments on commit 4ad8b08

Please sign in to comment.